Skip to content

rapidio: Two fixes for 'rio_dma_transfer()'

Christophe JAILLET kernel-janitors lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rapidio: Fix resources leak in error handling path in 'rio_dma_transfer()'drivers/rapidio/devices/rio_mport_cdev.c+2 -10 replies
2/2rapidio: Fix an error handling in 'rio_dma_transfer()'drivers/rapidio/devices/rio_mport_cdev.c+1 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLogan Gunthorpe
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] rapidio: Two fixes for 'rio_dma_transfer()'

These 2 patches are really close and are both related to error handling in 'rio_dma_transfer()'.
The first one fixes some resources leak in case of error. The 2nd one fixes a test so that the corresponding error can be handled correctly.

I've splitted this into 2 paches because the first one looks trivial to me. But the 2nd one should require more attention, IMO. The existing error handling was dead code because 'dma_map_sg()' can not return -EFAULT. So this error handling code has never been executed/tested and I can't test it myself.

Christophe JAILLET (2):
rapidio: Fix resources leak in error handling path in

    'rio_dma_transfer()'

rapidio: Fix an error handling in 'rio_dma_transfer()'

 drivers/rapidio/devices/rio_mport_cdev.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
2.11.0