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:42:10 +0000 (15:42 +0900)
commit7de4ebacd23756a6862e5691f326b807ccc4da91
treeb9402c1287f476a57afa6c321fae369d6bbfb5f5
parent5f6e35c2f9464c8b67b54ea5a919105c5f46f514
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