[SCSI] be2iscsi: fix bad if expression
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 19 Dec 2013 07:16:21 +0000 (01:16 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 10 Mar 2014 08:44:31 +0000 (12:44 +0400)
https://bugzilla.kernel.org/show_bug.cgi?id=67091

Cc: Jayamohan Kallickal <Jayamohan.Kallickal@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/be2iscsi/be_main.c

index 1f37505..5642a9b 100644 (file)
@@ -325,7 +325,7 @@ static int beiscsi_eh_device_reset(struct scsi_cmnd *sc)
                if (!abrt_task->sc || abrt_task->state == ISCSI_TASK_FREE)
                        continue;
 
-               if (abrt_task->sc->device->lun != abrt_task->sc->device->lun)
+               if (sc->device->lun != abrt_task->sc->device->lun)
                        continue;
 
                /* Invalidate WRB Posted for this Task */