Skip to content

Commit

Permalink
wimax: i2400: fix memory leak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Navid Emamdoost authored and David S. Miller committed Sep 11, 2019
1 parent f794dc2 commit 2507e6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wimax/i2400m/op-rfkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev,
"%d\n", result);
result = 0;
error_cmd:
kfree(cmd);
kfree_skb(ack_skb);
error_msg_to_dev:
error_alloc:
Expand Down

0 comments on commit 2507e6a

Please sign in to comment.