]> git.baikalelectronics.ru Git - uboot.git/commit
nand: davinci: avoid out of bounds array access
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 30 Jul 2019 21:29:21 +0000 (23:29 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 31 Jul 2019 17:08:07 +0000 (13:08 -0400)
commit068dddfa23bb0c4404f468bd4e1b1b2591d34efa
tree430bbea5f437115dd4feda445c1255b39c0dc2a7
parentfa1748de71ce372f88d52d3fc1bb2f69b6b3cd4b
nand: davinci: avoid out of bounds array access

The array bounds have to be checked before accessing the array element.

Identified by cppcheck.

Fixes: 67ac6ffaeefb ("mtd: nand: davinci: add opportunity to write keystone U-boot image")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/mtd/nand/raw/davinci_nand.c