MTD: Coverity defect cleanup: MTD [1/1]
authorxianjun.liu <xianjun.liu@amlogic.com>
Mon, 16 Sep 2019 07:56:11 +0000 (15:56 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 16 Sep 2019 10:23:52 +0000 (03:23 -0700)
commitf853652b0ae9eaed91be4bb8199c1cb1bc2afdea
tree58648e9648b2300eff3eda2d9d395888d520ebff
parent71b9f47421ef37c89f8008144e93c6e733748a7e
MTD: Coverity defect cleanup: MTD [1/1]

PD#SWPL-13991

Problem:
Out-of-bounds read in get_free_node

Solution:
fix the issue

Verify:
AXG400

Change-Id: I6e41caf3b3118d524218d6023fb51df692865cba
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
drivers/amlogic/mtd/rsv_manage.c