]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] QLOGICPTI: Do not unmap DMA unless we actually mapped something.
authorDavid S. Miller <davem@sunset.davemloft.net>
Sat, 14 Apr 2007 17:29:10 +0000 (10:29 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 14 Apr 2007 17:29:10 +0000 (10:29 -0700)
commit8d3ee2cb0ab59f78fdc801ede7db15ef47387bd0
tree004a3b3b5f0d1bc9a32d27bc7f555bae5a04112a
parentd791d413fd8527aa6b130882cc84d52aee0fe980
[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>
drivers/scsi/qlogicpti.c