[U-Boot] [PATCH] cmd_sf: add size checking to spi flash commands

2012-04-03 Thread Gerlando Falauto
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

Re: [U-Boot] [PATCH] cmd_sf: add size checking to spi flash commands

2012-04-03 Thread Mike Frysinger
On Tue, Apr 3, 2012 at 07:34, Gerlando Falauto wrote: 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