]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: ensure index is positive
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 3 Nov 2009 19:49:18 +0000 (20:49 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 30 Nov 2009 09:50:46 +0000 (09:50 +0000)
commit7735df4f4584a67db82f0625373a36a38d4ac407
treeb836cd329ed1fae21e323f9eee9c15c012423a62
parentbee0d8859b92d95a86877a974457804329512039
mtd: ensure index is positive

The index is signed, make sure it is not negative
when we read the array element.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdcore.c
drivers/mtd/nand/fsl_upm.c