Messages in this thread | | | Date | Thu, 21 Mar 2019 09:30:02 -0700 (PDT) | Subject | Re: [PATCH] genetlink: Fix a memory leak on error path | From | David Miller <> |
| |
From: Yue Haibing <yuehaibing@huawei.com> Date: Thu, 21 Mar 2019 15:02:50 +0800
> From: YueHaibing <yuehaibing@huawei.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@huawei.com> > Fixes: 2ae0f17df1cd ("genetlink: use idr to track families") > Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Applied and queued up for -stable, thanks.
| |