]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:46:46 +0000 (15:46 -0700)
commitb14e7f2ce17c6513548e910d7a8ba2a6707474fb
treed14283309b4f59bb626854e184c7e783fe84c5eb
parentf8c2ffc6c2f57c7306bc54ad227ab5771bca2ab7
mac80211: properly deal with station hashtable insert errors

Orabug: 23331171

[ Upstream commit 62b14b241ca6f790a17ccd9dd9f62ce1b006d406 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit d2bccdc948e21a48d593181c05667d454f423fcd)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
net/mac80211/sta_info.c