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)
commitc965853ab06b3e8a9d024d86730b373c333fc6f3
tree5c0c359d604d20684c3769338e56fdf9b94bedca
parent21891a452a42afc2313f1e3a69040e46c1d068c1
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