]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/3270: fix use after free of tty3270_screen structure
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 4 Dec 2013 13:29:11 +0000 (14:29 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 12 Dec 2013 10:00:38 +0000 (11:00 +0100)
commitf439a391fcd03c75de73e1beeb11bd059e5f2202
tree5bee8ebebb637599c1b16f29b5081cc9e268dae6
parentf5ceb896771a9f8ea57ac6e0b13224b737189aa4
s390/3270: fix use after free of tty3270_screen structure

The deactivation and freeing of the tty view of the 3270 device
can race with a tty3270_update invocation via the update timer.
To fix this move the del_timer_sync call for the update timer from
tty3270_free_view to tty3270_free prior to the tty3270_free_screen
call.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/tty3270.c