Files
u-boot-tk1-som/drivers/mtd
Masahiro Yamada 24c185cf58 cfi_flash: return NULL for invalid base address input
When base address given was out of valid flash address ranges,
flash_get_info() function returned the pointer to the last
element of flash_info[i] array.

This patch changes this function to return NULL pointer
in such a case, which is more correct behaviour.

The function flash_protect_default() calls flash_protect()
immediately after flash_get_info() invocation.
With this correction, flash_protect() function would be
able to return soon, for NULL flash_info.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Stefan Roese <sr@denx.de>
2013-05-23 09:48:45 +02:00
..
2013-05-01 16:41:08 -04:00
2013-04-11 15:52:54 -04:00
2011-05-12 23:43:27 +02:00
2013-04-11 15:52:54 -04:00
2008-09-09 11:48:53 +02:00