]> git.baikalelectronics.ru Git - kernel.git/commit
VMW_PVSCSI: Fix the issue of DMA-API related warnings.
authorJosh Boyer <jwboyer@fedoraproject.org>
Thu, 3 Dec 2015 13:27:59 +0000 (08:27 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Dec 2015 17:57:04 +0000 (12:57 -0500)
commit8160838e4ecaef488d1aa1b3ba54392e3732bac1
tree5c0c359d604d20684c3769338e56fdf9b94bedca
parent165c09ed400a203d0b8acc42350605f8a46bae3d
VMW_PVSCSI: Fix the issue of DMA-API related warnings.

The driver is missing calls to pci_dma_mapping_error() after
performing the DMA mapping, which caused DMA-API warning to
show up in dmesg's output. Though that happens only when
DMA_API_DEBUG option is enabled. This change fixes the issue
and makes pvscsi_map_buffers() function more robust.

Signed-off-by: Arvind Kumar <arvindkumar@vmware.com>
Cc: Josh Boyer <jwboyer@fedoraproject.org>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Josh Boyer <jwboyer@fedoraproject.org>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/vmw_pvscsi.c
drivers/scsi/vmw_pvscsi.h