kernel-hacking-2024-linux-s.../net/netlink
YueHaibing ceabee6c59 genetlink: Fix a memory leak on error path
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: 2ae0f17df1 ("genetlink: use idr to track families")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-21 09:29:06 -07:00
..
af_netlink.c rhashtable: Remove obsolete rhashtable_walk_init function 2019-02-22 13:49:00 +01:00
af_netlink.h
diag.c
genetlink.c genetlink: Fix a memory leak on error path 2019-03-21 09:29:06 -07:00
Kconfig
Makefile