From: David S. Miller Date: Sat, 14 Apr 2007 17:29:10 +0000 (-0700) Subject: [SCSI] QLOGICPTI: Do not unmap DMA unless we actually mapped something. X-Git-Tag: v2.6.21-rc7~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d3ee2cb0ab59f78fdc801ede7db15ef47387bd0;p=pandora-kernel.git [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 --- Reading git-diff-tree failed