diff options
author | Christoph Hellwig <hch@lst.de> | 2007-02-10 01:46:46 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 11:18:07 -0800 |
commit | d5698c28b6e4711e4747bf155f69936208d60e28 (patch) | |
tree | f11e7a8892a4ff218dc9a9789dbb77754ccb61f6 /drivers/misc | |
parent | 4b98d11b40f03382918796f3c5c936d5495d20a4 (diff) | |
download | op-kernel-dev-d5698c28b6e4711e4747bf155f69936208d60e28.zip op-kernel-dev-d5698c28b6e4711e4747bf155f69936208d60e28.tar.gz |
[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>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions