]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: mtdconcat: prevent a read from eraseregions[-1]
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 18 Sep 2009 19:51:49 +0000 (12:51 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 19 Sep 2009 18:18:46 +0000 (11:18 -0700)
commit35645308a7341690deb1fbc337983cbc1a5cb5f0
tree96661a766ddfa291782bded4c966c82445ca42eb
parent77fa7cf6d72f9cb99e1f7b433611e6b9dc292680
mtd: mtdconcat: prevent a read from eraseregions[-1]

If the erase region was found in the first iteration we read from
eraseregions[-1]

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdconcat.c