diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-03-21 15:02:50 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-21 09:29:06 -0700 |
commit | ceabee6c59943bdd5e1da1a6a20dc7ee5f8113a2 (patch) | |
tree | df755938d4f14d9888d2de3c1e1e896d77a20634 /net/sched/act_police.c | |
parent | 33872d79f5d1cbedaaab79669cc38f16097a9450 (diff) | |
download | linux-ceabee6c59943bdd5e1da1a6a20dc7ee5f8113a2.tar.bz2 |
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: 2ae0f17df1cd ("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>
Diffstat (limited to 'net/sched/act_police.c')
0 files changed, 0 insertions, 0 deletions