nl80211: Add NL80211_FLAG_CLEAR_SKB flag for other NL commands
authorSunil Dutt <usdutt@codeaurora.org>
Mon, 25 Feb 2019 10:07:20 +0000 (15:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:41:20 +0000 (19:41 +0200)
commitf2565d0e527794411789f6d3387f81c759cf8d2a
tree2acf355911fafc98134b72bcd668a5023671473e
parent1d918120e37da2079bd6ae28425cea89f3125140
nl80211: Add NL80211_FLAG_CLEAR_SKB flag for other NL commands

[ Upstream commit d6db02a88a4aaa1cd7105137c67ddec7f3bdbc05 ]

This commit adds NL80211_FLAG_CLEAR_SKB flag to other NL commands
that carry key data to ensure they do not stick around on heap
after the SKB is freed.

Also introduced this flag for NL80211_CMD_VENDOR as there are sub
commands which configure the keys.

Signed-off-by: Sunil Dutt <usdutt@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/nl80211.c