From: Nilesh Javali <njavali@xxxxxxxxxxx> commit 14cb838d245ae0d523b2f7804af5a02c22e79f5a upstream. Fix smatch-reported warning message: drivers/scsi/qla2xxx/qla_target.c:3324 qlt_xmit_response() warn: missing error code 'res' Link: https://lore.kernel.org/r/20220110050218.3958-12-njavali@xxxxxxxxxxx Fixes: 4a8f71014b4d ("scsi: qla2xxx: Fix unmap of already freed sgl") Cc: stable@xxxxxxxxxxxxxxx Reviewed-by: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx> Signed-off-by: Nilesh Javali <njavali@xxxxxxxxxxx> Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/scsi/qla2xxx/qla_target.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -3251,6 +3251,7 @@ int qlt_xmit_response(struct qla_tgt_cmd "RESET-RSP online/active/old-count/new-count = %d/%d/%d/%d.\n", vha->flags.online, qla2x00_reset_active(vha), cmd->reset_count, qpair->chip_reset); + res = 0; goto out_unmap_unlock; } Patches currently in stable-queue which might be from njavali@xxxxxxxxxxx are queue-5.4/scsi-qla2xxx-check-for-firmware-dump-already-collected.patch queue-5.4/scsi-qla2xxx-fix-warning-for-missing-error-code.patch queue-5.4/scsi-qla2xxx-fix-stuck-session-in-gpdb.patch queue-5.4/scsi-qla2xxx-add-devids-and-conditionals-for-28xx.patch queue-5.4/scsi-qla2xxx-fix-device-reconnect-in-loop-topology.patch queue-5.4/scsi-qla2xxx-fix-wrong-fdmi-data-for-64g-adapter.patch