summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-04-15 06:41:12 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-04-15 06:41:12 +0200
commitff99e40230d5cdf5e48bcdb4938d0626624bc4cb (patch)
tree9ea67e1d7f44db9704aa4f39df08452d24119820 /drivers
parentMerge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6 (diff)
parent[SCSI] QLOGICPTI: Do not unmap DMA unless we actually mapped something. (diff)
downloadlinux-ff99e40230d5cdf5e48bcdb4938d0626624bc4cb.tar.xz
linux-ff99e40230d5cdf5e48bcdb4938d0626624bc4cb.zip
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6: [SCSI] QLOGICPTI: Do not unmap DMA unless we actually mapped something.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/qlogicpti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c
index 9b827ceec501..9f10689905a8 100644
--- a/drivers/scsi/qlogicpti.c
+++ b/drivers/scsi/qlogicpti.c
@@ -1281,7 +1281,7 @@ static struct scsi_cmnd *qlogicpti_intr_handler(struct qlogicpti *qpti)
(struct scatterlist *)Cmnd->request_buffer,
Cmnd->use_sg,
Cmnd->sc_data_direction);
- } else {
+ } else if (Cmnd->request_bufflen) {
sbus_unmap_single(qpti->sdev,
(__u32)((unsigned long)Cmnd->SCp.ptr),
Cmnd->request_bufflen,