From: Bing Zhao Date: Tue, 3 Jul 2012 22:53:13 +0000 (-0700) Subject: mwifiex: fix Coverity SCAN CID 709078: Resource leak (RESOURCE_LEAK) X-Git-Tag: v3.5~24^2~24^2~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b3190466b0b6d336eddd10319c64a3ce3029b3ff;p=~emulex%2Finfiniband.git 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 Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index ce61b6fae1c..5c7fd185373 100644 --- 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; }