From f2dce0cf16439d4b396ea34df624b5789f46bef1 Mon Sep 17 00:00:00 2001 From: Wu Gao Date: Fri, 25 Aug 2017 15:28:50 +0800 Subject: [PATCH] qcacmn: Initialize variable in cfg80211 roc and mgmt tx To avoid unexpect issue, initialize variable in cfg80211 roc and mgmt tx. Change-Id: I5cc11cf011a136f29f6815142a45918ed71583fa CRs-Fixed: 2091906 --- src/wlan_cfg80211_p2p.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wlan_cfg80211_p2p.c b/src/wlan_cfg80211_p2p.c index 96be4c5b8755..372a115e3986 100644 --- a/src/wlan_cfg80211_p2p.c +++ b/src/wlan_cfg80211_p2p.c @@ -336,7 +336,7 @@ int wlan_cfg80211_roc(struct wlan_objmgr_vdev *vdev, struct ieee80211_channel *chan, uint32_t duration, uint64_t *cookie) { - struct p2p_roc_req roc_req; + struct p2p_roc_req roc_req = {0}; struct wlan_objmgr_psoc *psoc; uint8_t vdev_id; bool ok; @@ -405,7 +405,7 @@ int wlan_cfg80211_mgmt_tx(struct wlan_objmgr_vdev *vdev, const uint8_t *buf, uint32_t len, bool no_cck, bool dont_wait_for_ack, uint64_t *cookie) { - struct p2p_mgmt_tx mgmt_tx; + struct p2p_mgmt_tx mgmt_tx = {0}; struct wlan_objmgr_psoc *psoc; uint8_t vdev_id;