commit | 4384a3fae10c1badb859d2c98a6d2944b14609f6 | [log] [tgz] |
---|---|---|
author | Jiri Slaby <jirislaby@gmail.com> | Thu Oct 18 03:06:28 2007 -0700 |
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | Thu Oct 18 14:37:27 2007 -0700 |
tree | 08359a5b77d7535ddf80fddbd641f665213cc2af | |
parent | 57fedc7ae5f712c9c24f5baf30a0fbf38c1bda20 [diff] |
Char: rocket, remove potential leak in module_init if (controller && !request_region) then we leaked a tty driver struct, fix it by adding function deinit tail with goto-ing into it (and from other fail paths too) Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>