Skip to content

Commit e37f648

Browse files
Xinming HuKalle Valo
authored andcommitted
mwifiex: make addba request command clean
uninitilized variable, such as .add_req_result might be magic stack value. Initialize the structure to make it clean. Signed-off-by: Xinming Hu <[email protected]> Signed-off-by: Cathy Luo <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent cc5becd commit e37f648

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/wireless/marvell/mwifiex

1 file changed

+2
-0
lines changed

drivers/net/wireless/marvell/mwifiex/11n.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,8 @@ int mwifiex_send_addba(struct mwifiex_private *priv, int tid, u8 *peer_mac)
572572

573573
mwifiex_dbg(priv->adapter, CMD, "cmd: %s: tid %d\n", __func__, tid);
574574

575+
memset(&add_ba_req, 0, sizeof(add_ba_req));
576+
575577
if ((GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_STA) &&
576578
ISSUPP_TDLS_ENABLED(priv->adapter->fw_cap_info) &&
577579
priv->adapter->is_hw_11ac_capable &&

0 commit comments

Comments
 (0)