diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-10-26 07:53:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-30 02:20:25 +0300 |
commit | 6f3ef5c25cc762687a7341c18cbea5af54461407 (patch) | |
tree | f2e91bbce5a3819a21f94101c4039ae6968c28e5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 63a41746827cb16dc6ad0d4d761ab4e7dda7a0c3 (diff) | |
download | linux-6f3ef5c25cc762687a7341c18cbea5af54461407.tar.xz |
wimax: i2400: Fix memory leak in i2400m_op_rfkill_sw_toggle
In the implementation of i2400m_op_rfkill_sw_toggle() the allocated
buffer for cmd should be released before returning. The
documentation for i2400m_msg_to_dev() says when it returns the buffer
can be reused. Meaning cmd should be released in either case. Move
kfree(cmd) before return to be reached by all execution paths.
Fixes: 2507e6ab7a9a ("wimax: i2400: fix memory leak")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions