[SCSI] ibmvscsi: fix DMA API misuse
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 2 Apr 2010 06:50:24 +0000 (15:50 +0900)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 18:38:54 +0000 (13:38 -0500)
commita71fa1fc43a29133f13ae6ada1a389ca298c0934
tree64cb549ef371f683a5b3d3373a8b8e84b9326b73
parenta8f23b03535359c5afeb77d937b89b8a4d87b2b2
[SCSI] ibmvscsi: fix DMA API misuse

ibmvscsi uses dma_unmap_single() for buffers mapped via
dma_map_sg(). It works however it's the API violation. The DMA debug
facility complains about it:

http://marc.info/?l=linux-scsi&m=127018555013151&w=2

Reported-by: Sachin Sant <sachinp@in.ibm.com>
Tested-by: Sachin Sant <sachinp@in.ibm.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/ibmvscsi/ibmvscsi.c