]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/dasd: prevent prefix I/O error
authorStefan Haberland <sth@linux.vnet.ibm.com>
Thu, 26 Oct 2017 12:37:35 +0000 (14:37 +0200)
committerSasha Levin <alexander.levin@microsoft.com>
Sun, 4 Mar 2018 15:28:26 +0000 (10:28 -0500)
commit04142d311c0fddcc22d2561634f80dc05aa51efa
treee9b7c19ab04ffc54605c0282694a644e9d144351
parentffd97e42742dbf3f95499242611b7ad2459bace8
s390/dasd: prevent prefix I/O error

[ Upstream commit da340f921d3454f1521671c7a5a43ad3331fbe50 ]

Prevent that a prefix flag is set based on invalid configuration data.
The validity.verify_base flag should only be set for alias devices.
Usually the unit address type is either one of base, PAV alias or
HyperPAV alias. But in cases where the unit address type is not set or
any other value the validity.verify_base flag might be set as well.
This would lead to follow on errors.
Explicitly check for alias devices and set the validity flag only for
them.

Signed-off-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/s390/block/dasd_eckd.c