Skip to content
Commit 5a640967 authored by xinhui.pan's avatar xinhui.pan Committed by Greg Kroah-Hartman
Browse files

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: default avatarxinhui.pan <xinhuiX.pan@intel.com>
Reported-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8368d6a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment