Commit dc4a787c authored by Wei Yongjun's avatar Wei Yongjun Committed by John W. Linville

brcmfmac: fix missing unlock on error in brcmf_notify_vif_event()

Add the missing unlock before return from function brcmf_notify_vif_event()
in the error handling case.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 48f4d916
...@@ -4615,8 +4615,10 @@ static s32 brcmf_notify_vif_event(struct brcmf_if *ifp, ...@@ -4615,8 +4615,10 @@ static s32 brcmf_notify_vif_event(struct brcmf_if *ifp,
switch (ifevent->action) { switch (ifevent->action) {
case BRCMF_E_IF_ADD: case BRCMF_E_IF_ADD:
/* waiting process may have timed out */ /* waiting process may have timed out */
if (!cfg->vif_event.vif) if (!cfg->vif_event.vif) {
mutex_unlock(&event->vif_event_lock);
return -EBADF; return -EBADF;
}
ifp->vif = vif; ifp->vif = vif;
vif->ifp = ifp; vif->ifp = ifp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment