From: James Bottomley Date: Sun, 18 Sep 2011 14:56:20 +0000 (+0400) Subject: [SCSI] 3w-9xxx: fix iommu_iova leak X-Git-Tag: v3.1-rc9~24^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96067723e46b0dd24ae7b934085ab4eff4d26a1b;p=pandora-kernel.git [SCSI] 3w-9xxx: fix iommu_iova leak 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 Tested-by: Chris Boot Acked-by: Adam Radford Cc: stable@kernel.org Signed-off-by: James Bottomley --- Reading git-diff-tree failed