summaryrefslogtreecommitdiff
path: root/include/MCD_dma.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-07-28 23:45:03 -0400
committerWolfgang Denk <wd@denx.de>2010-08-09 01:03:54 +0200
commita4e8d9f5f957c7e3972ca9d25f17de5f8acd8244 (patch)
tree2f01e36b14fe7688b95f64b0e5f7ad14c61bace4 /include/MCD_dma.h
parent9ed4a9582ff61225d46241a1c99795549722503c (diff)
downloadu-boot-imx-a4e8d9f5f957c7e3972ca9d25f17de5f8acd8244.zip
u-boot-imx-a4e8d9f5f957c7e3972ca9d25f17de5f8acd8244.tar.gz
u-boot-imx-a4e8d9f5f957c7e3972ca9d25f17de5f8acd8244.tar.bz2
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>
Diffstat (limited to 'include/MCD_dma.h')
0 files changed, 0 insertions, 0 deletions