]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: Fix qcserial memory leak on rmmod
authorSteven Hardy <shardy@redhat.com>
Mon, 4 Apr 2011 16:57:37 +0000 (17:57 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 13 Apr 2011 22:53:16 +0000 (15:53 -0700)
commit10c9ab15d6aee153968d150c05b3ee3df89673de
tree810082bf8abfbc7daa43f6368aff0714a58fad91
parentc53c2fab40cf16e13af66f40bfd27200cda98d2f
usb: Fix qcserial memory leak on rmmod

qcprobe function allocates serial->private but this is never freed, this
patch adds a new function qc_release() which frees serial->private, after
calling usb_wwan_release

Signed-off-by: Steven Hardy <shardy@redhat.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/qcserial.c