]> git.hungrycats.org Git - linux/commit
[PATCH] fix tty shutdown race
authorAndrew Morton <akpm@digeo.com>
Mon, 14 Apr 2003 13:09:57 +0000 (06:09 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 14 Apr 2003 13:09:57 +0000 (06:09 -0700)
commit59b6573c72109c4c1bee928518949379da07c2da
tree4a3a64ead8cab28d568263bd63e7e604c7c8a30b
parent92b817f8d42ef76fded6294554c3bd7fc94b955c
[PATCH] fix tty shutdown race

use-after-free races have been seen due to the workqueue timer in the tty
structure going off after the tty was freed.

Fix that up by using cancel_scheduled_work() and flush_scheduled_work().
drivers/char/tty_io.c