mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
brcmfmac: Fix exception handling.
In some exception situations the ifp->vif was not properly assigned which could result in crash. Reviewed-by: Arend Van Spriel <arend@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
735ab6bfc0
commit
2b5d348ee7
1 changed files with 1 additions and 0 deletions
|
|
@ -6332,6 +6332,7 @@ wiphy_unreg_out:
|
|||
priv_out:
|
||||
wl_deinit_priv(cfg);
|
||||
brcmf_free_vif(vif);
|
||||
ifp->vif = NULL;
|
||||
wiphy_out:
|
||||
brcmf_free_wiphy(wiphy);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue