diff options
author | Chad Dupuis <cdupuis@marvell.com> | 2019-03-26 08:38:48 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-03-28 02:54:53 +0100 |
commit | 6f15d0c02950c75f85542031ccbf6a9725ca9925 (patch) | |
tree | c80f67bd6f38962f43907221ba376cfd42e42f94 /drivers/scsi/qedf/qedf_io.c | |
parent | scsi: qedf: Wait for upload and link down processing during soft ctx reset (diff) | |
download | linux-6f15d0c02950c75f85542031ccbf6a9725ca9925.tar.xz linux-6f15d0c02950c75f85542031ccbf6a9725ca9925.zip |
scsi: qedf: Add missing return in qedf_scsi_done()
On completions where we do not have a bad scsi_cmnd pointer we should
return before the the label lest we do a double kref_put.
Signed-off-by: Chad Dupuis <cdupuis@marvell.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedf/qedf_io.c')
-rw-r--r-- | drivers/scsi/qedf/qedf_io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c index 8d09cf3fe49b..57c3aa4fb708 100644 --- a/drivers/scsi/qedf/qedf_io.c +++ b/drivers/scsi/qedf/qedf_io.c @@ -1392,6 +1392,7 @@ void qedf_scsi_done(struct qedf_ctx *qedf, struct qedf_ioreq *io_req, sc_cmd->SCp.ptr = NULL; sc_cmd->scsi_done(sc_cmd); kref_put(&io_req->refcount, qedf_release_cmd); + return; bad_scsi_ptr: /* |