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-09 01:07:37 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-08-09 01:07:37 +02:00
2010-08-07 23:49:59 +02:00
2010-07-24 20:43:57 +02:00
2010-07-04 23:55:42 +02:00
2010-08-09 01:07:37 +02:00
2010-08-09 01:06:34 +02:00
2010-08-09 01:06:34 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-04 23:55:42 +02:00
2010-07-04 23:55:42 +02:00
2010-07-04 23:55:42 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-07-04 23:55:42 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:54:46 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-08-08 05:17:55 +05:30
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-04 23:55:42 +02:00
2010-08-09 01:07:37 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-08-09 01:06:34 +02:00
2010-08-09 11:52:29 -07:00
2010-07-24 20:43:57 +02:00
2010-08-10 09:43:26 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-08-09 01:07:37 +02:00
2010-07-24 20:43:57 +02:00
2010-08-09 00:53:57 +02:00
2010-07-24 20:43:57 +02:00
2010-08-09 01:07:37 +02:00
2010-07-24 20:43:57 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-07-16 10:55:09 -05:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:43:57 +02:00
2010-07-04 23:55:42 +02:00
2010-07-04 23:55:42 +02:00
2010-08-09 01:07:37 +02:00
2010-08-09 01:07:37 +02:00
2010-07-04 23:55:42 +02:00
2010-07-04 23:55:42 +02:00
2010-07-04 23:55:42 +02:00
2010-08-09 01:07:37 +02:00
2010-08-09 01:07:37 +02:00
2010-07-04 23:55:42 +02:00
2010-08-12 16:40:00 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-08-09 01:07:37 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-07-04 23:51:49 +02:00
2010-05-12 04:54:30 -05:00
2010-04-10 00:30:27 +02:00
2010-07-17 20:47:08 +02:00
2009-08-09 22:41:42 +02:00
2010-07-04 23:52:42 +02:00
2009-10-27 20:46:31 +01:00
2010-07-04 23:52:42 +02:00
2009-08-09 22:41:42 +02:00
2010-08-13 13:32:42 -05:00
2009-08-09 22:41:42 +02:00
2010-06-23 23:24:20 +02:00
2010-01-06 16:28:00 -06:00
2010-06-30 23:47:08 -04:00
2010-07-04 23:50:55 +02:00
2010-08-09 01:10:30 +02:00
2010-08-09 01:03:54 +02:00
2010-07-24 20:43:57 +02:00
2010-06-29 22:24:48 +02:00
2010-08-08 22:16:05 +02:00
2009-07-18 00:27:46 +02:00
2009-06-12 20:45:48 +02:00
2010-01-18 00:23:00 +01:00
2010-07-04 23:55:42 +02:00
2010-07-14 22:41:39 +02:00
2010-08-09 00:26:04 +02:00
2010-01-18 00:44:13 +01:00
2010-08-09 11:52:30 -07:00
2009-06-12 20:45:47 +02:00
2010-05-06 00:16:46 +02:00
2009-10-03 10:17:57 +02:00
2009-06-12 20:45:48 +02:00
2009-12-20 12:47:37 +01:00
2010-07-24 20:53:50 +02:00
2010-02-03 22:06:59 +01:00
2009-07-19 21:37:02 +02:00