]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: vmw_pvscsi: Fix swiotlb operation
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 3 Dec 2019 19:30:51 +0000 (20:30 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Dec 2019 03:42:44 +0000 (22:42 -0500)
commitf4652752a428f65936a7da5884095ef43a3cac18
tree077d00f7f0c8f9c3b8f375c4b35dab64ad8e2767
parenta808a04c861782e31fc30e342a619c144aaee14a
scsi: vmw_pvscsi: Fix swiotlb operation

With swiotlb, the first byte of the sense buffer may in some cases be
uninitialized since we use DMA_FROM_DEVICE, and the device incorrectly
doesn't clear it. In those cases, clear it after DMA unmapping.

Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20191203193052.7583-1-thomas_os@shipmail.org
Suggested-by: Vishal Bhakta <vbhakta@vmware.com>
Acked-by: Jim Gill <jgill@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/vmw_pvscsi.c