hso: fix memory leak in hso_create_rfkill()
commitd50dba276761b5e0bb86acb59c3388b4acdfdbb3
authoredrikk <edriss@hotmail.com>
Fri, 5 Jun 2015 17:47:13 +0000 (5 17:47 +0000)
committerToastman <toastman@galactic_core>
Fri, 18 Sep 2015 05:47:36 +0000 (18 12:47 +0700)
tree3220a15a342cd78ff05c85dd7fb635ef7a919789
parent6350455243bb998d87cd6d2a86506e2565095d9c
hso: fix memory leak in hso_create_rfkill()
When the rfkill interface was created, a buffer containing the name
of the rfkill node was allocated. This buffer was never freed when the
device disappears.

To fix the problem, we put the name given to rfkill_alloc() in
the hso_net structure.

Cherry Picked from Upstream Kernel:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2e6d01ff759c5f0fc831694c01c477a6c0ebf7b1
release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/hso.c