[PATCH] mtd: onenand: Fix uninitialized retlen in do_otp_read()

Miquel Raynal miquel.raynal at bootlin.com
Thu Dec 5 02:43:29 PST 2024


On Thu, 14 Nov 2024 16:29:51 +0300, Ivan Stepchenko wrote:
> 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.
> 
> [...]

Applied to nand/next, thanks!

[1/1] mtd: onenand: Fix uninitialized retlen in do_otp_read()

Patche(s) will be available within hours on:
mtd/linux.git

Kind regards,
Miquèl



More information about the linux-mtd mailing list