SCSI: Fix protection scsi_data_buffer leak
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 18 Sep 2009 21:33:01 +0000 (17:33 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Oct 2009 04:51:10 +0000 (21:51 -0700)
commit73932f03a6dc32f93518006eb1dfd7a72ee68537
tree5d3cc632f7c1dbd243702946d50f3a3af4c6e4e8
parent66f7234efcc7182ee7f3e5884ae385b2ff4dce87
SCSI: Fix protection scsi_data_buffer leak

commit b4c2554d40ceac130a8d062eaa8838ed22158c45 upstream.

We would leak a scsi_data_buffer if the free_list command was of the
protected variety.

Reported-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/scsi.c