Skip to content

Commit

Permalink
scsi: qedf: Fix null ptr reference in qedf_stag_change_work
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ye Bin authored and Martin K. Petersen committed Aug 25, 2020
1 parent dca9323 commit f308a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qedf/qedf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3863,7 +3863,7 @@ void qedf_stag_change_work(struct work_struct *work)
container_of(work, struct qedf_ctx, stag_work.work);

if (!qedf) {
QEDF_ERR(&qedf->dbg_ctx, "qedf is NULL");
QEDF_ERR(NULL, "qedf is NULL");
return;
}
QEDF_ERR(&qedf->dbg_ctx, "Performing software context reset.\n");
Expand Down

0 comments on commit f308a35

Please sign in to comment.