lkml.org 
[lkml]   [2016]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH net] bnx2x: avoid leaking memory on bnx2x_init_one() failures
Date
> bnx2x_init_bp() allocates memory with bnx2x_alloc_mem_bp() so if we fail later
> in bnx2x_init_one() we need to free this memory with bnx2x_free_mem_bp() to
> avoid leakages. E.g. I'm observing memory leaks reported by kmemleak when a
> failure (unrelated) happens in bnx2x_vfpf_acquire().
>
> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>

Thanks.

Acked-by: Yuval Mintz <Yuval.Mintz@qlogic.com>

\
 
 \ /
  Last update: 2016-05-31 09:21    [W:0.058 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site