From 16223935bb0d9e93fb28efd506e57aa66ce49920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rin=20Cat=20=28=E9=88=B4=E7=8C=AB=29?= Date: Sat, 4 Dec 2021 08:44:06 -0500 Subject: [PATCH] Fix: variables uninitialized --- core/rtw_debug.c | 2 +- core/rtw_mlme_ext.c | 4 ++-- include/rtw_recv.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/rtw_debug.c b/core/rtw_debug.c index 99cf624..f23522d 100644 --- a/core/rtw_debug.c +++ b/core/rtw_debug.c @@ -7016,7 +7016,7 @@ ssize_t proc_set_tx_deauth(struct file *file, const char __user *buffer, size_t char tmp[16]; u8 mac_addr[NUM_STA][ETH_ALEN]; u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; - u32 key_type; + u32 key_type = 0; u8 index; diff --git a/core/rtw_mlme_ext.c b/core/rtw_mlme_ext.c index 5ee17ea..f9e046e 100644 --- a/core/rtw_mlme_ext.c +++ b/core/rtw_mlme_ext.c @@ -10267,7 +10267,7 @@ static int issue_action_ba(_adapter *padapter, unsigned char *raddr, unsigned ch u16 start_seq; u16 BA_para_set; u16 BA_timeout_value; - u16 BA_starting_seqctrl; + u16 BA_starting_seqctrl = 0; struct xmit_frame *pmgntframe; struct pkt_attrib *pattrib; u8 *pframe; @@ -15045,7 +15045,7 @@ operation_by_state: #ifdef CONFIG_SCAN_BACKOP case SCAN_BACKING_OP: { - u8 back_ch, back_bw, back_ch_offset; + u8 back_ch = 0, back_bw = 0, back_ch_offset = 0; u8 need_ch_setting_union = _TRUE; #ifdef CONFIG_MCC_MODE diff --git a/include/rtw_recv.h b/include/rtw_recv.h index a0759e9..6433d8e 100644 --- a/include/rtw_recv.h +++ b/include/rtw_recv.h @@ -812,7 +812,7 @@ __inline static union recv_frame *rxmem_to_recvframe(u8 *rxmem) __inline static union recv_frame *pkt_to_recvframe(_pkt *pkt) { - u8 *buf_star; + u8 *buf_star = NULL; union recv_frame *precv_frame; precv_frame = rxmem_to_recvframe((unsigned char *)buf_star);