]> git.dujemihanovic.xyz Git - u-boot.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)
commit51443f57d868dc622eb9ad367ac7f7a173ed986e
tree430bbea5f437115dd4feda445c1255b39c0dc2a7
parent3380d1c131f376b4bd02d08a96e29af24c846601
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