projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10a9109
)
mwifiex: fix Coverity SCAN CID 709078: Resource leak (RESOURCE_LEAK)
author
Bing Zhao
<bzhao@marvell.com>
Tue, 3 Jul 2012 22:53:13 +0000
(15:53 -0700)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 9 Jul 2012 19:01:01 +0000
(15:01 -0400)
> *. 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>
drivers/net/wireless/mwifiex/cfg80211.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mwifiex/cfg80211.c
b/drivers/net/wireless/mwifiex/cfg80211.c
index ce61b6fae1c99f44ead5f0c226b26b882cdacf43..5c7fd185373cfb37c0ee57e62b9b54135af505b7 100644
(file)
--- a/
drivers/net/wireless/mwifiex/cfg80211.c
+++ b/
drivers/net/wireless/mwifiex/cfg80211.c
@@
-958,6
+958,7
@@
static int mwifiex_cfg80211_start_ap(struct wiphy *wiphy,
case NL80211_HIDDEN_SSID_ZERO_CONTENTS:
/* firmware doesn't support this type of hidden SSID */
default:
+ kfree(bss_cfg);
return -EINVAL;
}