commit | bf2b61a6838f19cbc33f6732715012c483fa3795 | [log] [tgz] |
---|---|---|
author | Dedy Lansky <dlansky@codeaurora.org> | Fri Jun 15 13:05:01 2018 +0200 |
committer | Johannes Berg <johannes@sipsolutions.net> | Fri Jun 15 13:05:14 2018 +0200 |
tree | 91aea74e94706907adfdf0c8be7daca9c6f86259 | |
parent | dc8b274f0952f604d72b10698cde6887321a669f [diff] |
cfg80211: fix rcu in cfg80211_unregister_wdev Callers of cfg80211_unregister_wdev can free the wdev object immediately after this function returns. This may crash the kernel because this wdev object is still in use by other threads. Add synchronize_rcu() after list_del_rcu to make sure wdev object can be safely freed. Signed-off-by: Dedy Lansky <dlansky@codeaurora.org> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>