wimax: i2400: fix memory leak
Subsystems (2)
PATCH 1/1 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]>
--- drivers/net/wimax/i2400m/op-rfkill.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wimax/i2400m/op-rfkill.c +1 -0
@@ -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:
Signature · 1 line
2.17.1
From: Navid Emamdoost <[email protected]>
Date: Tue, 10 Sep 2019 18:01:40 -0500
Quoted 4 lines
In
i2400m_op_rfkill_sw_togglecmd buffer should be released along with skb response.Signed-off-by Navid Emamdoost <[email protected]>
Applied.
Good thing nobody uses wimax.