提交 4a4f4d80 编写于 作者: J Johannes Berg 提交者: John W. Linville

cfg80211: fix wiphy remove if no regulatory request

Fixes the segfault I just pointed out.
Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 8bef7a10
......@@ -1330,7 +1330,7 @@ int set_regdom(const struct ieee80211_regdomain *rd)
/* Caller must hold cfg80211_drv_mutex */
void reg_device_remove(struct wiphy *wiphy)
{
if (!last_request->wiphy)
if (!last_request || !last_request->wiphy)
return;
if (last_request->wiphy != wiphy)
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册