[lkml]   [2007]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[patch 11/33] Fix qlogicpti DMA unmapping
    -stable review patch.  If anyone has any objections, please let us know.

    From: David Miller <>

    [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 <>
    Signed-off-by: Greg Kroah-Hartman <>

    drivers/scsi/qlogicpti.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/scsi/qlogicpti.c
    +++ b/drivers/scsi/qlogicpti.c
    @@ -1281,7 +1281,7 @@ static struct scsi_cmnd *qlogicpti_intr_
    (struct scatterlist *)Cmnd->request_buffer,
    - } else {
    + } else if (Cmnd->request_bufflen) {
    (__u32)((unsigned long)Cmnd->SCp.ptr),
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-04-26 19:15    [W:0.020 / U:5.148 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site