[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 eabcc42d63df17ca5bfc9afd89a1b6211b92f61a..151754d54745a3565fde4dca29a00f3de6b6a208 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);
 }