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)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 08:58:30 +0000 (10:58 +0200)
commit62b14b241ca6f790a17ccd9dd9f62ce1b006d406
tree839a88f8cfc4599aafff36d23625b7c5f38c2836
parentaa507a7bc5ab7513b83fc37ed040b5254737a518
mac80211: properly deal with station hashtable insert errors

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.

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