]> 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)
commit251b43ecce013ce938ee22928698ca3578ee5508
tree5c0c359d604d20684c3769338e56fdf9b94bedca
parent34623870385bdfa9b7853847e3f5872282ec8592
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