Christoph Hellwig d5698c28b6 [PATCH] tty: cleanup release_mem
release_mem contains two copies of exactly the same code.  Refactor these
into a new helper, release_tty.  The only change in behaviour is that the
driver reference count is now decremented after the master tty has been
freed instead of before.

[penberg@cs.helsinki.fi: fix use-after-free in release_tty.]
Cc: Alan Cox <alan@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-02-11 11:18:07 -08:00
..
2007-02-09 17:39:40 -05:00
2007-02-11 10:51:18 -08:00
2007-02-11 11:18:07 -08:00
2006-12-07 08:39:24 -08:00
2006-10-11 11:14:25 -07:00
2007-02-09 09:14:06 -08:00
2007-02-11 10:51:26 -08:00
2007-02-09 09:14:07 -08:00
2007-01-06 09:32:49 -06:00
2007-02-09 17:39:36 -05:00
2006-10-03 22:31:37 +02:00
2007-02-11 10:51:26 -08:00
2006-12-13 09:05:48 -08:00
2006-12-08 08:28:50 -08:00
2007-02-11 10:51:24 -08:00
2007-02-11 10:51:24 -08:00