From: Jack Wang <jinpu.wang@ionos.com>
To: miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org
Subject: [PATCH 0/2] mtd: rawnand: Fix dma_map_sg error check
Date: Thu, 25 Aug 2022 09:53:36 +0200 [thread overview]
Message-ID: <20220825075338.35338-1-jinpu.wang@ionos.com> (raw)
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/
next reply other threads:[~2022-08-25 7:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 7:53 Jack Wang [this message]
2022-08-25 7:53 ` [PATCH 1/2] mtd: rawnand: stm32_fmc2: Fix dma_map_sg error check 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220825075338.35338-1-jinpu.wang@ionos.com \
--to=jinpu.wang@ionos.com \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox