Skip to content

Commit f308a35

Browse files
Ye Binmartinkpetersen
authored andcommitted
scsi: qedf: Fix null ptr reference in qedf_stag_change_work
Link: https://lore.kernel.org/r/20200824033436.45570-1-yebin10@huawei.com Acked-by: Saurav Kashyap <skashyap@marvell.com> Signed-off-by: Ye Bin <yebin10@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent dca9323 commit f308a35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/qedf/qedf_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3863,7 +3863,7 @@ void qedf_stag_change_work(struct work_struct *work)
38633863
container_of(work, struct qedf_ctx, stag_work.work);
38643864

38653865
if (!qedf) {
3866-
QEDF_ERR(&qedf->dbg_ctx, "qedf is NULL");
3866+
QEDF_ERR(NULL, "qedf is NULL");
38673867
return;
38683868
}
38693869
QEDF_ERR(&qedf->dbg_ctx, "Performing software context reset.\n");

0 commit comments

Comments
 (0)