s390/chsc: sanitize fmt check for chp_desc determination
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 21 Jun 2016 11:59:08 +0000 (13:59 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 15 Jul 2016 12:32:00 +0000 (14:32 +0200)
commitf9773768f10c6af77778df67d6050778de42f120
treece9a7843a2fa0ae9238fd0cf88dbeb0858283ff1
parent0b601373778c770d7536b1d1761c3b2c06e4eb24
s390/chsc: sanitize fmt check for chp_desc determination

When fetching channel path descriptors we've only evaluated the rfmt
parameter which could lead us to trigger the chsc even though the
machine doesn't support the specific format or to not trigger the
chsc and report a failure to userspace even though the machine would've
supported it.

Improve these checks and change the parameters of the in-kernel
user to be less confusing.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/chsc.c