projects/linux·commit ff99e402

Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6

ff99e402 · Linus Torvalds <[email protected]> · 2007-04-14 21:41:12 -07:00

* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
  [SCSI] QLOGICPTI: Do not unmap DMA unless we actually mapped something.
Commit
ff99e40230d5cdf5e48bcdb4938d0626624bc4cb
Parents
2951157f · 8d3ee2cb

Merge commit. Changes below are compared with the first parent: 2951157f.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/scsi/qlogicpti.cmodified+1−1View file

drivers/scsi/qlogicpti.c

View file
diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c
index 9b827ce..9f10689 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,