Commit:     8d3ee2cb0ab59f78fdc801ede7db15ef47387bd0
Parent:     d791d413fd8527aa6b130882cc84d52aee0fe980
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Sat Apr 14 10:29:10 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sat Apr 14 10:29:10 2007 -0700

    [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 <[EMAIL PROTECTED]>
 drivers/scsi/qlogicpti.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 
-               } else {
+               } else if (Cmnd->request_bufflen) {
                                          (__u32)((unsigned long)Cmnd->SCp.ptr),
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to