Messages in this thread | | | Date | Tue, 29 Oct 2019 16:20:54 -0700 (PDT) | Subject | Re: [PATCH] wimax: i2400: Fix memory leak in i2400m_op_rfkill_sw_toggle | From | David Miller <> |
| |
From: Navid Emamdoost <navid.emamdoost@gmail.com> Date: Fri, 25 Oct 2019 23:53:30 -0500
> 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>
Applied.
| |