提交 11b7c609 编写于 作者: J John W. Linville

mac80211: fix lock leak w/ ARP filtering and w/o CONFIG_INET

"mac80211: make ARP filtering depend on CONFIG_INET" introduced this
potential locking leak.
Reported-by: NJuuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 dc1dfe47
...@@ -2078,10 +2078,9 @@ static enum work_done_result ieee80211_assoc_done(struct ieee80211_work *wk, ...@@ -2078,10 +2078,9 @@ static enum work_done_result ieee80211_assoc_done(struct ieee80211_work *wk,
cfg80211_send_assoc_timeout(wk->sdata->dev, cfg80211_send_assoc_timeout(wk->sdata->dev,
wk->filter_ta); wk->filter_ta);
return WORK_DONE_DESTROY; return WORK_DONE_DESTROY;
#ifdef CONFIG_INET
} else { } else {
mutex_unlock(&wk->sdata->u.mgd.mtx); mutex_unlock(&wk->sdata->u.mgd.mtx);
#ifdef CONFIG_INET
/* /*
* configure ARP filter IP addresses to the driver, * configure ARP filter IP addresses to the driver,
* intentionally outside the mgd mutex. * intentionally outside the mgd mutex.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册