Skip to content
Snippets Groups Projects
Commit bc619901 authored by Li RongQing's avatar Li RongQing Committed by Greg Kroah-Hartman
Browse files

netlink: remove hash::nelems check in netlink_insert


[ Upstream commit 0041195d ]

The type of hash::nelems has been changed from size_t to atom_t
which in fact is int, so not need to check if BITS_PER_LONG, that
is bit number of size_t, is bigger than 32

and rht_grow_above_max() will be called to check if hashtable is
too big, ensure it can not bigger than 1<<31

Signed-off-by: default avatarZhang Yu <zhangyu31@baidu.com>
Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: c1bb9484 ("netlink: annotate data races around nlk->portid")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 25f42a59
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment