summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-06-10 13:51:58 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-06-10 13:52:03 +0200
commit02fed023e12bcb2ad273dba54cd1a6c163aada1d (patch)
treea552097c4b9b53feff27f55079371279401fd28f /crypto
parent436ea81f5278af94471637fe80677dd8ce02f9c7 (diff)
downloadbarebox-02fed023e12bcb2ad273dba54cd1a6c163aada1d.tar.gz
barebox-02fed023e12bcb2ad273dba54cd1a6c163aada1d.tar.xz
mtd: partition: Fix multi eraseregion chips
The current code counts the eraseregions a new partition spans and sets the partitions number of eraseregions accordingly, but the code forgets to allocate and fill in the eraseregions for the partition mtd device. This makes the erase operation crash with a NULL pointer exception. This patch fixes this with the same approach the kernel uses: Set the number of eraseregions to 1 unconditionally and the eraseregion size to the maximum of the eraseregions found in the partition. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions