staging: spectra: don't read past array in Conv_Spare_Data_Log2Phy_Format()
authorroel kluin <[email protected]>
Mon, 3 Jan 2011 19:59:14 +0000 (11:59 -0800)
committerGreg Kroah-Hartman <[email protected]>
Fri, 21 Jan 2011 20:13:07 +0000 (12:13 -0800)
commitaa96646daa15d6ac05addc7db7272dd5787c6953
tree7f79b9dabbdc90b086d705c11aced740af7d835c
parente508edb203352e044dac359fb98579508bf7376c
staging: spectra: don't read past array in Conv_Spare_Data_Log2Phy_Format()

It should decrement or we read past the array

Signed-off-by: Roel Kluin <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/spectra/lld_nand.c