Commit f308a35f authored by Ye Bin's avatar Ye Bin Committed by Martin K. Petersen

scsi: qedf: Fix null ptr reference in qedf_stag_change_work

Link: https://lore.kernel.org/r/20200824033436.45570-1-yebin10@huawei.comAcked-by: default avatarSaurav Kashyap <skashyap@marvell.com>
Signed-off-by: default avatarYe Bin <yebin10@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent dca93232
...@@ -3863,7 +3863,7 @@ void qedf_stag_change_work(struct work_struct *work) ...@@ -3863,7 +3863,7 @@ void qedf_stag_change_work(struct work_struct *work)
container_of(work, struct qedf_ctx, stag_work.work); container_of(work, struct qedf_ctx, stag_work.work);
if (!qedf) { if (!qedf) {
QEDF_ERR(&qedf->dbg_ctx, "qedf is NULL"); QEDF_ERR(NULL, "qedf is NULL");
return; return;
} }
QEDF_ERR(&qedf->dbg_ctx, "Performing software context reset.\n"); QEDF_ERR(&qedf->dbg_ctx, "Performing software context reset.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment