[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190321.093002.1561928215186509735.davem@davemloft.net>
Date: Thu, 21 Mar 2019 09:30:02 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: yuehaibing@...wei.com
Cc: keescook@...omium.org, ktkhai@...tuozzo.com,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH] genetlink: Fix a memory leak on error path
From: Yue Haibing <yuehaibing@...wei.com>
Date: Thu, 21 Mar 2019 15:02:50 +0800
> From: YueHaibing <yuehaibing@...wei.com>
>
> In genl_register_family(), when idr_alloc() fails,
> we forget to free the memory we possibly allocate for
> family->attrbuf.
>
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Fixes: 2ae0f17df1cd ("genetlink: use idr to track families")
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists