diff options
author | 2024-11-14 16:29:51 +0300 | |
---|---|---|
committer | 2024-12-05 11:11:00 +0100 | |
commit | 70a71f8151b9879b0950668ce3ad76263261fee0 (patch) | |
tree | f37f716232276b08a2c1787c31fb0421f0b6d59e /scripts/gdb/linux/utils.py | |
parent | mtd: spinand: add support for FORESEE F35SQA001G (diff) | |
download | wireguard-linux-70a71f8151b9879b0950668ce3ad76263261fee0.tar.xz wireguard-linux-70a71f8151b9879b0950668ce3ad76263261fee0.zip |
mtd: onenand: Fix uninitialized retlen in do_otp_read()
The function do_otp_read() does not set the output parameter *retlen,
which is expected to contain the number of bytes actually read.
As a result, in onenand_otp_walk(), the tmp_retlen variable remains
uninitialized after calling do_otp_walk() and used to change
the values of the buf, len and retlen variables.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 49dc08eeda70 ("[MTD] [OneNAND] fix numerous races")
Cc: stable@vger.kernel.org
Signed-off-by: Ivan Stepchenko <sid@itb.spb.ru>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions