diff options
author | Mike Christie <michael.christie@oracle.com> | 2021-02-06 22:46:00 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-17 16:34:31 +0100 |
commit | e22dc0b3869395e45d9a92ebbb8fb6cc775845cd (patch) | |
tree | 996f273a16c56233e369f90a4b1f1c04506095e1 /sound/pci | |
parent | 30b560866423aee60d1314532dec9eb5813920db (diff) | |
download | linux-stable-e22dc0b3869395e45d9a92ebbb8fb6cc775845cd.tar.gz linux-stable-e22dc0b3869395e45d9a92ebbb8fb6cc775845cd.tar.bz2 linux-stable-e22dc0b3869395e45d9a92ebbb8fb6cc775845cd.zip |
scsi: libiscsi: Fix iscsi_prep_scsi_cmd_pdu() error handling
[ Upstream commit d28d48c699779973ab9a3bd0e5acfa112bd4fdef ]
If iscsi_prep_scsi_cmd_pdu() fails we try to add it back to the cmdqueue,
but we leave it partially setup. We don't have functions that can undo the
pdu and init task setup. We only have cleanup_task which can clean up both
parts. So this has us just fail the cmd and go through the standard cleanup
routine and then have the SCSI midlayer retry it like is done when it fails
in the queuecommand path.
Link: https://lore.kernel.org/r/20210207044608.27585-2-michael.christie@oracle.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions