FAILED: patch "[PATCH] scsi: qla2xxx: Move log messages before issuing command to" failed to apply to 4.18-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 4.18-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
9fe278f44b4bc06cc61e33b2af65f87d507d13d0Mon Sep 17 00:00:00 2001
From: Giridhar Malavali <[email protected]>
Date: Wed, 26 Sep 2018 22:05:18 -0700
Subject: [PATCH] scsi: qla2xxx: Move log messages before issuing command to
firmware
There is a probability that the SRB structure might have been released by the time the debug log message dereferences it. This patch moved the log messages before the command is issued to the firmware to prevent unknown behavior and kernel crash
drivers/scsi/qla2xxx/qla_gs.c +8 -7
@@ -3124,15 +3124,15 @@ int qla24xx_async_gpsc(scsi_qla_host_t *vha, fc_port_t *fcport) sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout; sp->done = qla24xx_async_gpsc_sp_done; - rval =qla2x00_start_sp (sp); -if (rval !=QLA_SUCCESS ) - goto done_free_sp; -ql_dbg (ql_dbg_disc, vha,0x205e ,"Async-%s %8phC hdl=%x loopid=%x portid=%02x%02x%02x.\n" , sp->name, fcport->port_name, sp->handle, fcport->loop_id, fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa); + + rval =qla2x00_start_sp (sp); +if (rval !=QLA_SUCCESS ) + goto done_free_sp;return rval; done_free_sp:
@@ -3450,13 +3450,14 @@ int qla24xx_async_gpnid(scsi_qla_host_t *vha, port_id_t *id) sp->u.iocb_cmd.timeout = qla2x00_async_iocb_timeout; sp->done = qla2x00_async_gpnid_sp_done; +ql_dbg (ql_dbg_disc, vha,0x2067 , +"Async-%s hdl=%x ID %3phC.\n" , sp->name, + sp->handle, ct_req->req.port_id.port_id); + rval =qla2x00_start_sp (sp);if (rval !=QLA_SUCCESS ) goto done_free_sp; -ql_dbg (ql_dbg_disc, vha,0x2067 , -"Async-%s hdl=%x ID %3phC.\n" , sp->name, - sp->handle, ct_req->req.port_id.port_id);return rval; done_free_sp:
drivers/scsi/qla2xxx/qla_init.c +25 -23
113 lines not on this page · raw message