]> git.baikalelectronics.ru Git - kernel.git/commit
s390/sclp: fix possible control register corruption
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 7 Jan 2016 12:37:22 +0000 (13:37 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 11 Jan 2016 12:03:00 +0000 (13:03 +0100)
commiteacf0579d3ead7c8ee6dbca8b9eda499ac9d2407
tree83642948d0f2f154725b19a0eb7b61429b174822
parentd601a67c3de1d769436e538b551ffc859c64e00f
s390/sclp: fix possible control register corruption

sclp_sync_wait() disables all external interrupt classes except for
the service signal subclass.

The static mask used for that however is wrong. It clears a couple of
bits which shouldn't be cleared and on the other hand potentially does
not clear bits which should be cleared.

Fix this by using the same generic mask like we do it in our delay
implementation.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/sclp.c