]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: clear wext keys when freeing and removing them
authorJohannes Berg <johannes.berg@intel.com>
Wed, 10 Sep 2014 10:39:56 +0000 (13:39 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 11 Sep 2014 10:07:28 +0000 (12:07 +0200)
commit891596b36916ce3612afbe7005829caaa002c7b1
tree738b71b941b78e7708c158eb79b7fabeddf480f4
parent1a18a9e9bd17f40396b84177565fe8d7574c36bf
cfg80211: clear wext keys when freeing and removing them

When freeing the keys stored for wireless extensions, clear the memory
to avoid having the key material stick around in memory "forever".
Similarly, when userspace overwrites a key, actually clear it instead
of just setting the key length to zero.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c
net/wireless/wext-compat.c