lkml.org 
[lkml]   [2023]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v1] arch: free dev before return
Hi Minjie,

On Mon, Jul 3, 2023 at 5:33 AM Minjie Du <duminjie@vivo.com> wrote:
>
> We fixed a bug where the variable dev
> was not freed before return.
>
> Signed-off-by: Minjie Du <duminjie@vivo.com>
> ---
> arch/xtensa/platforms/iss/network.c | 1 +
> 1 file changed, 1 insertion(+)

Applied to my xtensa tree with the following commit message:

xtensa: ISS: fix etherdev leak in error return path

iss_net_configure frees etherdev in all error return paths except one
where register_netdevice fails. Add missing free_netdev to that path.

--
Thanks.
-- Max

\
 
 \ /
  Last update: 2023-07-03 16:20    [W:0.028 / U:1.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site