s390/pfault: add sanity check
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 10 May 2012 08:47:21 +0000 (10:47 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 16 May 2012 12:42:43 +0000 (14:42 +0200)
commitd49f47f83d15f3142d482a29de76f45360e34082
tree255724f1f3d0e6b395c14ca91829ed6141be7964
parent0a16ba7866fd5cd802d49801a099f4c558ce99c7
s390/pfault: add sanity check

If the task that was found on an initial interrupt doesn't match the
current task execute a WARN_ON_ONCE() and don't put the task to sleep.

When this happened something went wrong between the interface of the
hypervisor and the kernel. In such a case keep the tasks alive to
avoid a hanging system.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/fault.c