From: Navid Emamdoost Date: Tue, 10 Sep 2019 23:01:40 +0000 (-0500) Subject: wimax: i2400: fix memory leak X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2507e6ab7a9a440773be476141a255934468c5ef;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/wimax/i2400m/op-rfkill.c b/drivers/net/wimax/i2400m/op-rfkill.c index 6642bcb27761..8efb493ceec2 100644 --- a/drivers/net/wimax/i2400m/op-rfkill.c +++ b/drivers/net/wimax/i2400m/op-rfkill.c @@ -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: