wimax: i2400: fix memory leak
In i2400m_op_rfkill_sw_toggle cmd buffer should be released along with skb response. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f794dc2304
commit
2507e6ab7a
@ -127,6 +127,7 @@ int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev,
|
|||||||
"%d\n", result);
|
"%d\n", result);
|
||||||
result = 0;
|
result = 0;
|
||||||
error_cmd:
|
error_cmd:
|
||||||
|
kfree(cmd);
|
||||||
kfree_skb(ack_skb);
|
kfree_skb(ack_skb);
|
||||||
error_msg_to_dev:
|
error_msg_to_dev:
|
||||||
error_alloc:
|
error_alloc:
|
||||||
|
Loading…
Reference in New Issue
Block a user