From: Peter Oberparleiter Date: Thu, 26 Mar 2009 14:24:18 +0000 (+0100) Subject: [S390] cio: incorrect status check in interrogate function X-Git-Tag: MMI-PSA29.97-13-9~29227^2~44 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a968f0565dc5d0518c784465cc8ce32408102b7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [S390] cio: incorrect status check in interrogate function Fix incorrect check for active I/O in interrogate function. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/cio/device_ops.c b/drivers/s390/cio/device_ops.c index eabcc42d63df..151754d54745 100644 --- a/drivers/s390/cio/device_ops.c +++ b/drivers/s390/cio/device_ops.c @@ -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); }