[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191029.162054.1719938267738224650.davem@davemloft.net>
Date: Tue, 29 Oct 2019 16:20:54 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: navid.emamdoost@...il.com
Cc: emamd001@....edu, kjlu@....edu, smccaman@....edu,
inaky.perez-gonzalez@...el.com, linux-wimax@...el.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] wimax: i2400: Fix memory leak in
i2400m_op_rfkill_sw_toggle
From: Navid Emamdoost <navid.emamdoost@...il.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@...il.com>
Applied.
Powered by blists - more mailing lists