mwifiex: fix Coverity SCAN CID 709078: Resource leak (RESOURCE_LEAK)
> *. CID 709078: Resource leak (RESOURCE_LEAK) > - drivers/net/wireless/mwifiex/cfg80211.c, line: 935 > Assigning: "bss_cfg" = storage returned from "kzalloc(132UL, 208U)" > - but was not free > drivers/net/wireless/mwifiex/cfg80211.c:935 Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
10a9109f27
commit
b3190466b0
1 changed files with 1 additions and 0 deletions
|
@ -958,6 +958,7 @@ static int mwifiex_cfg80211_start_ap(struct wiphy *wiphy,
|
||||||
case NL80211_HIDDEN_SSID_ZERO_CONTENTS:
|
case NL80211_HIDDEN_SSID_ZERO_CONTENTS:
|
||||||
/* firmware doesn't support this type of hidden SSID */
|
/* firmware doesn't support this type of hidden SSID */
|
||||||
default:
|
default:
|
||||||
|
kfree(bss_cfg);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue