[S390] cio: incorrect status check in interrogate function
authorPeter Oberparleiter <peter.oberparleiter@de.ibm.com>
Thu, 26 Mar 2009 14:24:18 +0000 (15:24 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 26 Mar 2009 14:24:17 +0000 (15:24 +0100)
Fix incorrect check for active I/O in interrogate function.

Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device_ops.c

index eabcc42..151754d 100644 (file)
@@ -680,7 +680,7 @@ int ccw_device_tm_intrg(struct ccw_device *cdev)
        if (cdev->private->state != DEV_STATE_ONLINE)
                return -EIO;
        if (!scsw_is_tm(&sch->schib.scsw) ||
-           !(scsw_actl(&sch->schib.scsw) | SCSW_ACTL_START_PEND))
+           !(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_START_PEND))
                return -EINVAL;
        return cio_tm_intrg(sch);
 }