]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: properly deal with station hashtable insert errors
authorJohannes Berg <johannes.berg@intel.com>
Thu, 31 Mar 2016 15:22:45 +0000 (17:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:45:21 +0000 (15:45 +0900)
commit14361b4d6f74175e645c0872dea96ef1118716ea
treeafab6c123112753b86b737bcc0a4871e1b2e232e
parent9657718bfdac29a5bdd4f3d3815979beda5b6e15
mac80211: properly deal with station hashtable insert errors

commit 62b14b241ca6f790a17ccd9dd9f62ce1b006d406 upstream.

The original hand-implemented hash-table in mac80211 couldn't result
in insertion errors, and while converting to rhashtable I evidently
forgot to check the errors.

This surfaced now only because Ben is adding many identical keys and
that resulted in hidden insertion errors.

Fixes: 7bedd0cfad4e1 ("mac80211: use rhashtable for station table")
Reported-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/sta_info.c