Skip to content
Commit bf2b61a6 authored by Dedy Lansky's avatar Dedy Lansky Committed by Johannes Berg
Browse files

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: default avatarDedy Lansky <dlansky@codeaurora.org>
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
parent dc8b274f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment