hso: fix memory leak in hso_create_rfkill()
authorOlivier Sobrie <olivier@sobrie.be>
Fri, 30 Jan 2015 12:21:56 +0000 (13:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2015 20:33:26 +0000 (12:33 -0800)
commit2e6d01ff759c5f0fc831694c01c477a6c0ebf7b1
treec65af7c8fceb6823875a1bf33e724ddbf66a3627
parent295fc56f465ee8e013b2889e42094da9b2bd7125
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.

Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c
This page took 0.027143 seconds and 5 git commands to generate.