[PATCH 0/2] Nvme: Fix dma_map_sg error check
Jack Wang
jinpu.wang at ionos.com
Wed Aug 24 23:47:45 PDT 2022
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, this is for Nvme subsystem.
Thanks!
[1] https://lore.kernel.org/linux-rdma/20220818105355.110344-1-haris.iqbal@ionos.com/T/#t
Jack Wang (2):
nvme-rdma: Fix error check for ib_dma_map_sg
nvme-fc: Fix the error check for dma_map_sg
drivers/nvme/host/fc.c | 2 +-
drivers/nvme/host/rdma.c | 4 ++--
drivers/nvme/target/fc.c | 5 +++++
3 files changed, 8 insertions(+), 3 deletions(-)
--
2.34.1
More information about the Linux-nvme
mailing list