commit | 2e6d01ff759c5f0fc831694c01c477a6c0ebf7b1 | [log] [tgz] |
---|---|---|
author | Olivier Sobrie <olivier@sobrie.be> | Fri Jan 30 13:21:56 2015 +0100 |
committer | David S. Miller <davem@davemloft.net> | Sun Feb 01 12:33:26 2015 -0800 |
tree | c65af7c8fceb6823875a1bf33e724ddbf66a3627 | |
parent | 295fc56f465ee8e013b2889e42094da9b2bd7125 [diff] |
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>