From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Tue, 3 Apr 2012 12:31:29 -0700 Subject: [U-Boot] [PATCH] cmd_sf: add size checking to spi flash commands In-Reply-To: <1333463653-31311-1-git-send-email-gerlando.falauto@keymile.com> References: <4F5F9103.1030807@keymile.com> <1333463653-31311-1-git-send-email-gerlando.falauto@keymile.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 warning being issued. > So add a consistency checking so not to overflow past the flash size. looks OK to me. i'll test it locally and merge it into my SF branch. cheers! -mike