[PATCH] s390: fix sclp memory corruption in tty pages list
authorPeter Oberparleiter <peter.oberparleiter@de.ibm.com>
Sun, 12 Feb 2006 01:55:59 +0000 (17:55 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 12 Feb 2006 05:41:12 +0000 (21:41 -0800)
commit25fab9ebac445d57b656f5faabac5a195bed2f82
tree1cb23fbe97c2fcabe020a611a8a89e9c91e804f0
parente6f3601a7275216c48c2635f46b388d970901bb9
[PATCH] s390: fix sclp memory corruption in tty pages list

When the sclp interface takes very long to serve a request, the sclp core
driver will report a failed request to the sclp tty driver even though the
request is still being processed by the sclp interface.  Eventually the sclp
interface completes the request and updates some fields in the request buffer
which leads to a corrupted tty pages list.  The next time function
sclp_tty_write_room is called, the corrupted list will be traversed, resulting
in an oops.

To avoid this remove the busy retry limit and increase retry intervals.

Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/s390/char/sclp.c