[dm-devel] [PATCH v2] scsi: address leak in scsi_setup_discard_cmnd error path (was: Re: scsi: unify the error handling of the prep functions)

Christoph Hellwig hch at lst.de
Wed Jul 7 19:44:31 UTC 2010


> Here is a minimalist patch that 1) removes the discard request's page
> leak 2) preserves the prep cleanup rules covered above.  Fixing the leak
> is a priority, introducing additional error path code sharing/cleanup is
> secondary and can come later.

I much prefer this approach.

> Signed-off-by: Mike Snitzer <snitzer at redhat.com>


Reviewed-by: Christoph Hellwig <hch at lst.de>





More information about the dm-devel mailing list