[9610] wlbt: fix prevent issue
authorYoungsoo Kim <youngss.kim@samsung.com>
Mon, 27 Aug 2018 09:29:16 +0000 (18:29 +0900)
committerhskang <hs1218.kang@samsung.com>
Mon, 27 Aug 2018 07:27:14 +0000 (16:27 +0900)
CID 237209 Uninitialized pointer read (UNINIT)
35. uninit_use_in_call: Using uninitialized value ht_operation_ie when calling slsi_modify_ies_on_channel_switch.

Change-Id: Id1913c5a9b92e4ec77c7ecac4ea21e1d82a0633c

drivers/net/wireless/scsc/cfg80211_ops.c

index 54bf3a13f8409851a1252acba678c1c6b64b5a99..d481bba93f9dac2a51228e47b3e78f2d00732d9a 100755 (executable)
@@ -1876,7 +1876,7 @@ int slsi_start_ap(struct wiphy *wiphy, struct net_device *dev,
        u8 *ds_params_ie = NULL;
        struct ieee80211_mgmt  *mgmt;
        u16                    beacon_ie_head_len;
-       u8 *ht_operation_ie;
+       u8 *ht_operation_ie = NULL;
        struct netdev_vif *ndev_sta_vif;
 #endif
        struct ieee80211_channel  *channel = NULL;