From: Christoph Hellwig Date: Sat, 10 Feb 2007 09:46:46 +0000 (-0800) Subject: [PATCH] tty: cleanup release_mem X-Git-Tag: v2.6.21-rc1~274^2~244 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5698c28b6e4711e4747bf155f69936208d60e28;p=pandora-kernel.git [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 Signed-off-by: Christoph Hellwig Signed-off-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed