diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-09-11 01:01:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-11 10:10:13 +0200 |
commit | 2507e6ab7a9a440773be476141a255934468c5ef (patch) | |
tree | 97a98d51e46237a9d9009afbf7439614d37c9f48 /drivers/net/wimax | |
parent | sctp: fix the missing put_user when dumping transport thresholds (diff) | |
download | linux-2507e6ab7a9a440773be476141a255934468c5ef.tar.xz linux-2507e6ab7a9a440773be476141a255934468c5ef.zip |
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 <navid.emamdoost@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wimax')
-rw-r--r-- | drivers/net/wimax/i2400m/op-rfkill.c | 1 |
1 files changed, 1 insertions, 0 deletions
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: |