All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian King <brking@linux.vnet.ibm.com>
To: Robert Jennings <rcj@linux.vnet.ibm.com>
Cc: linux-scsi@vger.kernel.org, James.Bottomley@HansenPartnership.com
Subject: Re: [PATCH] ibmvscsi: Correct DMA mapping leak
Date: Wed, 28 Jan 2009 08:45:30 -0600	[thread overview]
Message-ID: <49806F8A.2000907@linux.vnet.ibm.com> (raw)
In-Reply-To: <20090122194009.GB14767@austin.ibm.com>

Acked by: Brian King <brking@linux.vnet.ibm.com>

Robert Jennings wrote:
> The ibmvscsi client driver is not unmapping the SCSI command after
> encountering a DMA mapping error while trying to map an indirect
> scattergather list for the event pool.  This leads to a leak of DMA
> entitlement that could result in the device failing future DMA operations
> in a CMO environment.
> 
> Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
> ---
>  drivers/scsi/ibmvscsi/ibmvscsi.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> Index: b/drivers/scsi/ibmvscsi/ibmvscsi.c
> ===================================================================
> --- a/drivers/scsi/ibmvscsi/ibmvscsi.c
> +++ b/drivers/scsi/ibmvscsi/ibmvscsi.c
> @@ -432,6 +432,7 @@ static int map_sg_data(struct scsi_cmnd 
>  				sdev_printk(KERN_ERR, cmd->device,
>  				            "Can't allocate memory "
>  				            "for indirect table\n");
> +			scsi_dma_unmap(cmd);
>  			return 0;
>  		}
>  	}
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Brian King
Linux on Power Virtualization
IBM Linux Technology Center



      reply	other threads:[~2009-01-28 14:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-22 19:40 [PATCH] ibmvscsi: Correct DMA mapping leak Robert Jennings
2009-01-28 14:45 ` Brian King [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49806F8A.2000907@linux.vnet.ibm.com \
    --to=brking@linux.vnet.ibm.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=rcj@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.