Alan Stern 7c72ce8187 [SCSI] Fix leak of Scsi_Cmnds
When a request is deferred in scsi_init_io because the sg table could not
be allocated, the associated scsi_cmnd is not released and the request is
not marked with REQ_DONTPREP.  When the command is retried, if
scsi_prep_fn decides to kill it then the scsi_cmnd will never be released.

This patch (as573) changes scsi_init_io so that it calls scsi_put_command
before deferring a request.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2005-10-16 15:35:11 -05:00
..
2005-09-20 21:01:13 +01:00
2005-09-10 10:06:35 -07:00
2005-09-22 22:17:34 -07:00
2005-10-10 08:40:47 -07:00
2005-10-08 15:00:57 -07:00
2005-10-14 17:10:12 -07:00
2005-10-14 17:10:12 -07:00
2005-09-08 01:45:47 -04:00
2005-10-16 15:35:11 -05:00
2005-09-11 19:15:07 -07:00
2005-09-11 19:15:07 -07:00