Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[platform/kernel/linux-starfive.git] / drivers / scsi / qedi / qedi_fw.c
index 4eb89aa..6901738 100644 (file)
@@ -603,9 +603,9 @@ static void qedi_scsi_completion(struct qedi_ctx *qedi,
                goto error;
        }
 
-       if (!sc_cmd->SCp.ptr) {
+       if (!iscsi_cmd(sc_cmd)->task) {
                QEDI_WARN(&qedi->dbg_ctx,
-                         "SCp.ptr is NULL, returned in another context.\n");
+                         "NULL task pointer, returned in another context.\n");
                goto error;
        }