summaryrefslogtreecommitdiffstats
path: root/board/freescale/mx6qsabrelite/mx6qsabrelite.c
diff options
context:
space:
mode:
authorGerlando Falauto <gerlando.falauto@keymile.com>2012-04-03 04:34:13 +0000
committerMike Frysinger <vapier@gentoo.org>2012-04-03 04:34:13 +0000
commit864939949eda9108fb7bc350af040500cd102954 (patch)
treee60fcc33d0dfc34f85a3a8825ed9c7bc819eece0 /board/freescale/mx6qsabrelite/mx6qsabrelite.c
parent41e1713425d9817fdbe4fc89ad11b8dc9c4fca30 (diff)
downloadblackbird-obmc-uboot-864939949eda9108fb7bc350af040500cd102954.tar.gz
blackbird-obmc-uboot-864939949eda9108fb7bc350af040500cd102954.zip
cmd_sf: add size checking to spi flash commands
SPI flash operations inadvertently stretching beyond the flash size will result in a wraparound. This may be particularly dangerous when burning u-boot, because the flash contents will be corrupted rendering the board unusable, without any warning being issued. So add a consistency checking so not to overflow past the flash size. Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/freescale/mx6qsabrelite/mx6qsabrelite.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud