Explorar o código

qcacld-3.0: Initialize uninitialized variable

Current code in __hdd_hard_start_xmit function there is a possibility
of one variable uninitialized. Improve the code by initializing the
variable.

Change-Id: Ia2dbed83b35801087b93bbb336d13df95a78a8aa
CRs-Fixed: 2029588
Sravan Kumar Kairam %!s(int64=8) %!d(string=hai) anos
pai
achega
dd57ea349e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/hdd/src/wlan_hdd_tx_rx.c

+ 1 - 1
core/hdd/src/wlan_hdd_tx_rx.c

@@ -879,7 +879,7 @@ static netdev_tx_t __hdd_hard_start_xmit(struct sk_buff *skb,
 	struct qdf_mac_addr *mac_addr;
 	uint8_t pkt_type = 0;
 	struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
-	bool is_arp;
+	bool is_arp = false;
 
 #ifdef QCA_WIFI_FTM
 	if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE) {