mac80211: free peer keys before vif down in mesh
authorPradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Tue, 28 May 2019 23:36:16 +0000 (16:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Jul 2019 07:04:19 +0000 (09:04 +0200)
commitad3ce300690665da156dd1ee514393e8aabc2b92
tree8911fc343d03b5385566a949926f9dd1391ec18b
parentb5a48f04c912d31f730e928de8fb7ce147a08bf4
mac80211: free peer keys before vif down in mesh

[ Upstream commit 0112fa557c3bb3a002bc85760dc3761d737264d3 ]

freeing peer keys after vif down is resulting in peer key uninstall
to fail due to interface lookup failure. so fix that.

Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mesh.c