diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-14 01:40:50 +0100 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-14 01:40:50 +0100 |
commit | 0f5ae3d2e9f49af55eb2a9b7cb54b4c0c2373017 (patch) | |
tree | c06f26d34bff12e4324e901a6406835894010da3 /drivers/fc4 | |
parent | a6550e57f9d074511cf420bdb802ab5e56edc3bb (diff) | |
download | blackbird-op-linux-0f5ae3d2e9f49af55eb2a9b7cb54b4c0c2373017.tar.gz blackbird-op-linux-0f5ae3d2e9f49af55eb2a9b7cb54b4c0c2373017.zip |
[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 'drivers/fc4')
0 files changed, 0 insertions, 0 deletions