aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-05-13 20:40:50 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-13 20:40:50 -0400
commit0f5ae3d2e9f49af55eb2a9b7cb54b4c0c2373017 (patch)
treec06f26d34bff12e4324e901a6406835894010da3 /include/linux/mtd
parenta6550e57f9d074511cf420bdb802ab5e56edc3bb (diff)
[MTD] Deal correctly with NOR chips which are smaller than the map window
We used to calculate the number of chips to be zero, allocate an array of that size, then nasty things would happen when we attempt to access the first object in that zero-sized array. Now, if the number of _full_ chips that would fit into the map is zero, we allocate an array of one anyway, and then artificially reduce the total size of the resulting MTD device to fit in the map. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/mtd')
0 files changed, 0 insertions, 0 deletions