]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
3w-9xxx: fix iommu_iova leak
authorJames Bottomley <JBottomley@Parallels.com>
Sun, 18 Sep 2011 14:56:20 +0000 (18:56 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 20:32:09 +0000 (12:32 -0800)
commit6e66366450c622c3d551a5b0ac8c820d56a7369c
treebbcebcdf9de9a71ccef939855f8ced2f14fe3d59
parentf48f8fe35ad1e72cef6deb78fd512527520acab1
3w-9xxx: fix iommu_iova leak

commit 96067723e46b0dd24ae7b934085ab4eff4d26a1b upstream.

Following reports on the list, it looks like the 3e-9xxx driver will leak dma
mappings every time we get a transient queueing error back from the card.
This is because it maps the sg list in the routine that sends the command, but
doesn't unmap again in the transient failure path (even though the command is
sent back to the block layer).  Fix by unmapping before returning the status.

Reported-by: Chris Boot <bootc@bootc.net>
Tested-by: Chris Boot <bootc@bootc.net>
Acked-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/3w-9xxx.c