commit | a4e8d9f5f957c7e3972ca9d25f17de5f8acd8244 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Wed Jul 28 23:45:03 2010 -0400 |
committer | Wolfgang Denk <wd@denx.de> | Mon Aug 09 01:03:54 2010 +0200 |
tree | 2f01e36b14fe7688b95f64b0e5f7ad14c61bace4 | |
parent | 9ed4a9582ff61225d46241a1c99795549722503c [diff] |
flash_protect: check for NULL flash info If a flash is unable to be detected, and then someone calls flash_protect on it (like the common code does in flash_init), the flash_protect logic will dereference a NULL pointer. Since flash_protect already does sanity checking on the info structs, add a NULL pointer check in there. Signed-off-by: Mike Frysinger <vapier@gentoo.org>