projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
badb953
)
serial: ifx6x60: fix memory leak
author
Vasiliy Kulikov
<segoon@openwall.com>
Fri, 19 Nov 2010 18:41:45 +0000
(21:41 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 1 Dec 2010 01:25:46 +0000
(17:25 -0800)
If tty_register_driver() failed then tty_driver is still alive.
Free it with put_tty_driver().
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/ifx6x60.c
patch
|
blob
|
history
diff --git
a/drivers/serial/ifx6x60.c
b/drivers/serial/ifx6x60.c
index
3f8d5ee
..
ab93763
100644
(file)
--- a/
drivers/serial/ifx6x60.c
+++ b/
drivers/serial/ifx6x60.c
@@
-1384,6
+1384,7
@@
static int __init ifx_spi_init(void)
if (result) {
pr_err("%s: tty_register_driver failed(%d)",
DRVNAME, result);
+ put_tty_driver(tty_drv);
return result;
}