net: ipv6: check return value of rhashtable_init
authorMichelleJin <shjy180909@gmail.com>
Mon, 27 Sep 2021 03:34:56 +0000 (03:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2021 11:59:24 +0000 (12:59 +0100)
commitf04ed7d277e842af9934b71b529341d1ba31a9c1
treee0695fe17ed7959bd8b007e694ffe1cc65dcbd27
parentd7cade513752968d894d4d73e0b08fe2d84d6d4b
net: ipv6: check return value of rhashtable_init

When rhashtable_init() fails, it returns -EINVAL.
However, since error return value of rhashtable_init is not checked,
it can cause use of uninitialized pointers.
So, fix unhandled errors of rhashtable_init.

Signed-off-by: MichelleJin <shjy180909@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ila/ila_xlat.c
net/ipv6/seg6.c
net/ipv6/seg6_hmac.c