nandwrite: always check the first erase block
authorBaruch Siach <baruch@tkos.co.il>
Sun, 29 Aug 2010 07:36:50 +0000 (10:36 +0300)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 29 Aug 2010 11:30:22 +0000 (13:30 +0200)
commit7715b48c36a453b41f4555ee57c2f936e25f06f1
treee68fddaf8b2c515c68668fdb15e2b10bc020d9e0
parentb32a5436633f53f0abf0fa29105cf7e5b65091cf
nandwrite: always check the first erase block

Current code does not check the first erase block when mtdoffset is not erase
block aligned. Fix this.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/nandwrite.c