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 <>
Reported-by: default avatarDan Carpenter <>
Acked-by: default avatarArend van Spriel <>
Signed-off-by: default avatarJohn W. Linville <>
parent 48f4d916
......@@ -4615,8 +4615,10 @@ static s32 brcmf_notify_vif_event(struct brcmf_if *ifp,
switch (ifevent->action) {
/* waiting process may have timed out */
if (!cfg->vif_event.vif)
if (!cfg->vif_event.vif) {
return -EBADF;
ifp->vif = vif;
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