aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
index cecc3eff72e9..2af9c0f0798d 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
@@ -4615,8 +4615,10 @@ static s32 brcmf_notify_vif_event(struct brcmf_if *ifp,
4615 switch (ifevent->action) { 4615 switch (ifevent->action) {
4616 case BRCMF_E_IF_ADD: 4616 case BRCMF_E_IF_ADD:
4617 /* waiting process may have timed out */ 4617 /* waiting process may have timed out */
4618 if (!cfg->vif_event.vif) 4618 if (!cfg->vif_event.vif) {
4619 mutex_unlock(&event->vif_event_lock);
4619 return -EBADF; 4620 return -EBADF;
4621 }
4620 4622
4621 ifp->vif = vif; 4623 ifp->vif = vif;
4622 vif->ifp = ifp; 4624 vif->ifp = ifp;