diff options
author | 2005-10-14 11:23:27 -0400 | |
---|---|---|
committer | 2005-10-16 15:35:11 -0500 | |
commit | 7c72ce81870ded9365f4bc5caa98ef1591dd18dd (patch) | |
tree | ff1eae57d11693f7e2d36efd3fdc26efa45e1419 /drivers/i2c | |
parent | [SCSI] FW: [PATCH] for Deadlock in transport_fc (diff) | |
download | wireguard-linux-7c72ce81870ded9365f4bc5caa98ef1591dd18dd.tar.xz wireguard-linux-7c72ce81870ded9365f4bc5caa98ef1591dd18dd.zip |
[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>
Diffstat (limited to 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions