OSDN Git Service

net: mac80211: check return value of rhashtable_init
authorMichelleJin <shjy180909@gmail.com>
Mon, 27 Sep 2021 03:34:57 +0000 (03:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2021 11:59:24 +0000 (12:59 +0100)
commitf43bed7193a36b1b4f73212ee0069f9113816856
tree644296520f535792541f5417ee903ff24788a732
parentf04ed7d277e842af9934b71b529341d1ba31a9c1
net: mac80211: 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>
net/mac80211/mesh_pathtbl.c