From: xinhui.pan Date: Mon, 28 Jul 2014 08:14:52 +0000 (+0800) Subject: tty/n_gsm.c: fix a memory leak in gsmld_open X-Git-Tag: omap-for-v3.17/fixes-against-rc2~165^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a64096700dc9761b57e767c9f0b740eb2cb84dd;p=pandora-kernel.git tty/n_gsm.c: fix a memory leak in gsmld_open 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 Reported-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed