Skip to content

Commit 2507e6a

Browse files
Navidemdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f794dc2 commit 2507e6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/wimax/i2400m/op-rfkill.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev,
127127
"%d\n", result);
128128
result = 0;
129129
error_cmd:
130+
kfree(cmd);
130131
kfree_skb(ack_skb);
131132
error_msg_to_dev:
132133
error_alloc:

0 commit comments

Comments
 (0)