Mike Frysinger 962ad59e25 env_nand: return error when no device is found
Currently, if there is an error probing the NAND chip and the env is based
in NAND, the readenv() function will use a NULL function pointer and thus
jump to address 0.

Here I just check for a non-zero value of blocksize as that shouldn't be
zero when a valid device is found, but perhaps there is a better way for
someone familiar with the NAND internals to suggest.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>
2010-08-13 13:32:42 -05:00
..
2010-08-07 23:49:59 +02:00
2010-07-24 20:54:46 +02:00
2010-08-08 05:17:55 +05:30
2010-08-09 11:52:29 -07:00
2010-08-10 09:43:26 +02:00
2010-07-16 10:55:09 -05:00
2010-07-17 20:47:08 +02:00
2010-06-23 23:24:20 +02:00
2010-06-29 22:24:48 +02:00
2010-01-18 00:23:00 +01:00
2010-07-14 22:41:39 +02:00
2010-01-18 00:44:13 +01:00
2010-05-06 00:16:46 +02:00