public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mtd: rawnand: Fix dma_map_sg error check
@ 2022-08-25  7:53 Jack Wang
  2022-08-25  7:53 ` [PATCH 1/2] mtd: rawnand: stm32_fmc2: " Jack Wang
  2022-08-25  7:53 ` [PATCH 2/2] mtd: rawnand: marvell: Fix error handle regarding dma_map_sg Jack Wang
  0 siblings, 2 replies; 4+ messages in thread
From: Jack Wang @ 2022-08-25  7:53 UTC (permalink / raw)
  To: miquel.raynal, linux-mtd

Hi, all,

While working on a bugfix on RTRS[1], I noticed there are quite a few other
drivers have the same problem, due to the fact dma_map_sg return 0 on error,
not like most of the cases, return negative value for error.

I "grep -A 5 dma_map_sg' in kernel tree, and audit/fix the one I feel is buggy,
hence this patchset. As suggested by Christoph Hellwig, I now send the patches per
subsystem, this is for mtd subsystem.

Thanks!

[1] https://lore.kernel.org/linux-rdma/20220818105355.110344-1-haris.iqbal@ionos.com/T/#t

Jack Wang (2):
  mtd: rawnand: stm32_fmc2: Fix dma_map_sg error check
  mtd: rawnand: marvell: Fix error handle regarding dma_map_sg

 drivers/mtd/nand/raw/marvell_nand.c    | 8 +++++++-
 drivers/mtd/nand/raw/stm32_fmc2_nand.c | 8 +++++---
 2 files changed, 12 insertions(+), 4 deletions(-)

-- 
2.34.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-19 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-25  7:53 [PATCH 0/2] mtd: rawnand: Fix dma_map_sg error check Jack Wang
2022-08-25  7:53 ` [PATCH 1/2] mtd: rawnand: stm32_fmc2: " Jack Wang
2022-09-19 16:00   ` Miquel Raynal
2022-08-25  7:53 ` [PATCH 2/2] mtd: rawnand: marvell: Fix error handle regarding dma_map_sg Jack Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox