net/mlx5e: check return value of rhashtable_init
authorMichelleJin <shjy180909@gmail.com>
Mon, 27 Sep 2021 03:34:55 +0000 (03:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2021 11:59:24 +0000 (12:59 +0100)
commitd7cade513752968d894d4d73e0b08fe2d84d6d4b
tree723202b1057357819184ffc3a47f797f5df443c4
parenta17aafa3a416971bb5a17464f1c949e3de6d1b18
net/mlx5e: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c