Commit c5c27eda authored by Navid Emamdoost's avatar Navid Emamdoost Committed by Khalid Elmously

wimax: i2400: fix memory leak

BugLink: https://bugs.launchpad.net/bugs/1860681

commit 2507e6ab upstream.

In i2400m_op_rfkill_sw_toggle cmd buffer should be released along with
skb response.
Signed-off-by: default avatarNavid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarBen Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarConnor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent fa3f07da
...@@ -142,6 +142,7 @@ int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev, ...@@ -142,6 +142,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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment