Return-path: Received: from mail-pf0-f195.google.com ([209.85.192.195]:38838 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751106AbdHABib (ORCPT ); Mon, 31 Jul 2017 21:38:31 -0400 Received: by mail-pf0-f195.google.com with SMTP id e3so313919pfc.5 for ; Mon, 31 Jul 2017 18:38:31 -0700 (PDT) From: Xinming Hu To: Linux Wireless Cc: Kalle Valo , Brian Norris , Dmitry Torokhov , rajatja@google.com, Zhiyuan Yang , Tim Song , Cathy Luo , Ganapathi Bhat , Xinming Hu Subject: [v2 PATCH 1/2] mwifiex: make addba request command clean Date: Tue, 1 Aug 2017 01:38:23 +0000 Message-Id: <1501551504-8560-1-git-send-email-huxinming820@gmail.com> (sfid-20170801_033835_535406_7C1864C8) Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Xinming Hu uninitilized variable, such as .add_req_result might be magic stack value. Initialize the structure to make it clean. Signed-off-by: Xinming Hu Signed-off-by: Cathy Luo --- v2: Same as v1 --- drivers/net/wireless/marvell/mwifiex/11n.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/marvell/mwifiex/11n.c b/drivers/net/wireless/marvell/mwifiex/11n.c index 16c77c2..7252069 100644 --- a/drivers/net/wireless/marvell/mwifiex/11n.c +++ b/drivers/net/wireless/marvell/mwifiex/11n.c @@ -572,6 +572,8 @@ int mwifiex_send_addba(struct mwifiex_private *priv, int tid, u8 *peer_mac) mwifiex_dbg(priv->adapter, CMD, "cmd: %s: tid %d\n", __func__, tid); + memset(&add_ba_req, 0, sizeof(add_ba_req)); + if ((GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_STA) && ISSUPP_TDLS_ENABLED(priv->adapter->fw_cap_info) && priv->adapter->is_hw_11ac_capable && -- 1.9.1