mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
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>
This commit is contained in:
parent
dca93232b3
commit
f308a35f54
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue