Skip to content
Commit 8d3ee2cb authored by David S. Miller's avatar David S. Miller
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent d791d413
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment