]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: rawnand: atmel: Fix dma_mapping_error() address
authorThomas Fourier <fourier.thomas@gmail.com>
Wed, 2 Jul 2025 06:45:11 +0000 (08:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:05:05 +0000 (12:05 +0200)
commit5e727df3dd1dee8b77d19f70d6bb80f5338af65a
tree8436aaf0bdf1b3d8153b303fc3746331e65b669a
parent0784c69c92858112d5ba326a6cf9254d84336d40
mtd: rawnand: atmel: Fix dma_mapping_error() address

[ Upstream commit e1e6b933c56b1e9fda93caa0b8bae39f3f421e5c ]

It seems like what was intended is to test if the dma_map of the
previous line failed but the wrong dma address was passed.

Fixes: f88fc122cc34 ("mtd: nand: Cleanup/rework the atmel_nand driver")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Rule: add
Link: https://lore.kernel.org/stable/20250702064515.18145-2-fourier.thomas%40gmail.com
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/raw/atmel/nand-controller.c