Re: [PATCH] cfg80211: free the object allocated in wiphy_apply_custom_regulatory

From: xiaoqiang zhao
Date: Fri Jul 23 2021 - 05:36:11 EST




在 2021/7/23 17:25, Dongliang Mu 写道:
> Can you point out the concrete code releasing regd? Maybe the link to elixir.
>
>>> ieee80211_unregister_hw(data->hw);
>>> device_release_driver(data->dev);
>>> device_unregister(data->dev);
>>>

call graph seems like this:

ieee80211_unregister_hw
(https://elixir.bootlin.com/linux/v5.14-rc2/source/net/mac80211/main.c#L1368)
wiphy_unregister
(https://elixir.bootlin.com/linux/v5.14-rc2/source/net/wireless/core.c#L1011)
wiphy_regulatory_deregister
(https://elixir.bootlin.com/linux/v5.14-rc2/source/net/wireless/reg.c#L4057)
rcu_free_regdom