]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: check return value of rhashtable_init
authorMichelleJin <shjy180909@gmail.com>
Mon, 27 Sep 2021 03:34:57 +0000 (03:34 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 27 Sep 2021 10:00:34 +0000 (12:00 +0200)
commit94e67919e9f8b4b694a00a576b69391d3f8f82c6
treeb543ca397a347e10a4e42eac77f04280c395b793
parentffac88d4afca708edaadfad73a0ae8654fbdb94a
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>
Link: https://lore.kernel.org/r/20210927033457.1020967-4-shjy180909@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_pathtbl.c