summaryrefslogtreecommitdiffstats
path: root/drivers/dma/ppc4xx
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2014-07-08 16:04:44 +0200
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2014-07-19 08:53:52 +0200
commite8c235b065ec07cd1c63c0e0bfbfc718d438baba (patch)
tree30ca6ba1e34721502e3838cd47337bea2303dbee /drivers/dma/ppc4xx
parentUBIFS: replace seq_printf by seq_puts (diff)
downloadlinux-e8c235b065ec07cd1c63c0e0bfbfc718d438baba.tar.xz
linux-e8c235b065ec07cd1c63c0e0bfbfc718d438baba.zip
UBI: init_volumes: Ignore volumes with no LEBs
UBI assumes that ubi_attach_info will only contain ubi_ainf_volume structures for volumes with at least one LEB. In scanning mode this is true because UBI can nicely create a ubi_ainf_volume on demand while creating the EBA table. For fastmap this is not true, the fastmap on-flash structure has a list of all volumes, the ubi_ainf_volume structures are created from this list. So it can happen that an empty volume ends up in init_volumes(). We can easely deal with that by looking into ->leb_count too. Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/dma/ppc4xx')
0 files changed, 0 insertions, 0 deletions