cfg80211: clear connect keys when freeing them

When freeing the connect keys, clear the memory to avoid
having the key material stick around in memory "forever".

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg
2014-09-10 13:39:54 +03:00
parent b1e9be8775
commit b47f610bd6
5 changed files with 11 additions and 11 deletions

View File

@@ -797,7 +797,7 @@ void cfg80211_upload_connect_keys(struct wireless_dev *wdev)
netdev_err(dev, "failed to set mgtdef %d\n", i);
}
kfree(wdev->connect_keys);
kzfree(wdev->connect_keys);
wdev->connect_keys = NULL;
}