brcmfmac: use lock in brcmf_fws_del_interface()
[deliverable/linux.git] / drivers / net / wireless / brcm80211 / brcmfmac / fwsignal.c
index 648f9bd89dacc086a0fb9290c2ee778085cb9b8a..1cfec5601c68eeef2e7d32ba966ebecbdc3add60 100644 (file)
@@ -1821,14 +1821,17 @@ void brcmf_fws_add_interface(struct brcmf_if *ifp)
 void brcmf_fws_del_interface(struct brcmf_if *ifp)
 {
        struct brcmf_fws_mac_descriptor *entry = ifp->fws_desc;
+       ulong flags;
 
        brcmf_dbg(TRACE, "enter: idx=%d\n", ifp->bssidx);
        if (!entry)
                return;
 
+       brcmf_fws_lock(ifp->drvr, flags);
        ifp->fws_desc = NULL;
        brcmf_fws_clear_mac_descriptor(entry);
        brcmf_fws_cleanup(ifp->drvr->fws, ifp->ifidx);
+       brcmf_fws_unlock(ifp->drvr, flags);
 }
 
 static void brcmf_fws_dequeue_worker(struct work_struct *worker)
This page took 0.027091 seconds and 5 git commands to generate.