]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
scsi: qedf: Fix null ptr reference in qedf_stag_change_work
authorYe Bin <yebin10@huawei.com>
Mon, 24 Aug 2020 03:34:36 +0000 (11:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 11:55:33 +0000 (13:55 +0200)
[ Upstream commit f308a35f547cd7c1d8a901c12b3ac508e96df665 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qedf/qedf_main.c

index 36b1ca2dadbb503bc20bcfba50af484e6db649af..51cfab9d1afdc6e46f9cddfcc1394802f6a51acd 100644 (file)
@@ -3843,7 +3843,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");