cfi_flash: Add missing check for erased dest to flash_write_cfibuffer()
authorStefan Roese <sr@denx.de>
Thu, 27 Dec 2007 06:50:54 +0000 (07:50 +0100)
committerStefan Roese <sr@denx.de>
Thu, 27 Dec 2007 06:50:54 +0000 (07:50 +0100)
commit0dc80e2759fba859ccc4cdadc633577ca2971f3e
tree462d51af6b15c7f8cdc14cbde27bd35b72de6ea7
parent0dcfe3a225a9436fc514f374a19242c672f1172b
cfi_flash: Add missing check for erased dest to flash_write_cfibuffer()

The check for an sufficiently erased destination was missing in the
buffered write function of the cfi flash driver (when
CFG_FLASH_USE_BUFFER_WRITE is defined). This patch adds this check to that
writing to such a region will fail with the currect error message.

Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c