aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing
diff options
context:
space:
mode:
authorJan Höppner <hoeppner@linux.vnet.ibm.com>2017-06-22 17:17:15 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2017-06-28 07:32:15 +0200
commit795c9a5106119f45d2501c4fb01051178904753f (patch)
treeece078078b134225f127f5edd49e36db738bd402 /tools/testing
parents390/pci: recognize name clashes with uids (diff)
downloadwireguard-linux-795c9a5106119f45d2501c4fb01051178904753f.tar.xz
wireguard-linux-795c9a5106119f45d2501c4fb01051178904753f.zip
s390/dasd: Fix faulty ENODEV for RO sysfs attribute
If a device is offline it can still be set to read-only via the bus id through sysfs. Only the read-only feature flag for the ccw_device is then set. If the device is online the corresponding block device needs to be set to read-only as well (via set_disk_ro()). The check whether there is a device to do so, however, happens after the feature flag was set. This leads to an unnecessary "no such device" error in the offline case. This bug was introduced by commit 7571cb1c8e3cc ("s390/dasd: Make use of dasd_set_feature() more often"). Fix this by simply returning count if no device is available. Fixes: 7571cb1c8e3cc ("s390/dasd: Make use of dasd_set_feature() more often") Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions