]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: rawnand: rockchip: Add missing check after DMA map
authorThomas Fourier <fourier.thomas@gmail.com>
Mon, 7 Jul 2025 07:15:50 +0000 (09:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:05:05 +0000 (12:05 +0200)
commitad478129504a4cc255e345fc04c7d1c87916a002
treef5aeb7ff7b34e766914497627985a0e6906511c8
parent5e727df3dd1dee8b77d19f70d6bb80f5338af65a
mtd: rawnand: rockchip: Add missing check after DMA map

[ Upstream commit 3b36f86dc47261828f96f826077131a35dd825fd ]

The DMA map functions can fail and should be tested for errors.

Fixes: 058e0e847d54 ("mtd: rawnand: rockchip: NFC driver for RK3308, RK2928 and others")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/raw/rockchip-nand-controller.c