git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8368d6a
)
tty/n_gsm.c: fix a memory leak in gsmld_open
author
xinhui.pan
<xinhuix.pan@intel.com>
Mon, 28 Jul 2014 08:14:52 +0000
(16:14 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 1 Aug 2014 23:04:54 +0000
(16:04 -0700)
If gsmld_attach_gsm fails, the gsm is not used anymore.
tty core will not call gsmld_close to do the cleanup work.
tty core just restore to the tty old ldisc.
That always causes memory leak.
Signed-off-by: xinhui.pan <xinhuiX.pan@intel.com>
Reported-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c
patch
|
blob
|
history
diff --cc
drivers/tty/n_gsm.c
Simple merge