]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: spinand: initialize ret in regular page reads
authorRuoyu Wang <ruoyuw560@gmail.com>
Wed, 17 Jun 2026 18:37:49 +0000 (02:37 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 29 Jun 2026 14:40:36 +0000 (16:40 +0200)
commit5d7a08125e69630dc1168d3e9ca5626ded3da807
tree3e07efe680202d8d17933f75f30d9b61f39f0ddf
parent4b45d7836b9526b8776af5f29219615be9417230
mtd: spinand: initialize ret in regular page reads

spinand_mtd_regular_page_read() returns ret after iterating over the
requested pages. If the request contains no data or OOB bytes, the
iterator does not run and ret is not assigned. Initialize it to 0 for the
empty request path.

Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/spi/core.c