]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix qlogicpti DMA unmapping
authorDavid Miller <davem@davemloft.net>
Tue, 17 Apr 2007 21:35:07 +0000 (14:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 May 2007 00:05:57 +0000 (17:05 -0700)
commitd3bf6f8a58459b7aefc10591807846b0b5697244
treef99d9862a8860bd466d176fbfbf68bf2b3d26aba
parent169ed0ec5ee1f3733d5b23cd0d2ddadc697472df
Fix qlogicpti DMA unmapping

[SCSI] QLOGICPTI: Do not unmap DMA unless we actually mapped something.

We only map DMA when cmd->request_bufflen is non-zero for non-sg
buffers, we thus should make the same check when unmapping.

Based upon a report from Pasi Pirhonen.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/qlogicpti.c