]> Git Repo - u-boot.git/commit
env_nand: return error when no device is found
authorMike Frysinger <[email protected]>
Thu, 12 Aug 2010 03:42:26 +0000 (23:42 -0400)
committerScott Wood <[email protected]>
Fri, 13 Aug 2010 18:32:42 +0000 (13:32 -0500)
commit962ad59e25640e586e2bceabf67a628a27f8f508
tree232b659a46815bf280fa284a1fa513c0b7246102
parent668a6b45915d10d75357f5b93f569bbf49ea2b06
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 <[email protected]>
Tested-by: Ben Gardiner <[email protected]>
common/env_nand.c
This page took 0.031907 seconds and 4 git commands to generate.