]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] s390: tape operation abortion leads to panic
authorMichael Holzheu <holzheu@de.ibm.com>
Fri, 24 Mar 2006 11:15:27 +0000 (03:15 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:18 +0000 (07:33 -0800)
commit637f4495c335bc26ea99a1699d447a23eeb11121
treec424b0788f70eb3148bc7bedd43008daa3c41560
parentc8c6fa242b7ea4091ebe6465a1750a06b5f7d94d
[PATCH] s390: tape operation abortion leads to panic

When a request is aborted because of a signal, we currently stop the request
via csh, but we do not wait for the interrupt of csh in any case.  We free the
request structure and therefore when the interrupt for the csh operation is
presented, the request object is no longer valid and an invalid callback
pointer is used.

To fix this wait until the interrupt for csh arrives and until
wait_event_interruptible() does not return -ERESTARTSYS.

Signed-off-by: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/s390/char/tape_core.c