Преглед на файлове

qcacld-3.0: initialize pld_uevent_data variable to zero

Initialize pld_uevent_data variable to zero, as the driver
expects zero data if there is no fw down data sent from
platform driver.

Change-Id: I24c3fa459207d254f7b579a387985eca06466447
CRs-fixed: 2658683
Mohammed Siddiq преди 5 години
родител
ревизия
d1f55ebdbc
променени са 6 файла, в които са добавени 9 реда и са изтрити 9 реда
  1. 1 1
      core/pld/src/pld_ipci.c
  2. 1 1
      core/pld/src/pld_pcie.c
  3. 2 2
      core/pld/src/pld_pcie_fw_sim.c
  4. 2 2
      core/pld/src/pld_sdio.c
  5. 2 2
      core/pld/src/pld_snoc_fw_sim.c
  6. 1 1
      core/pld/src/pld_usb.c

+ 1 - 1
core/pld/src/pld_ipci.c

@@ -245,7 +245,7 @@ static int pld_ipci_uevent(struct device *dev,
 {
 	struct pld_context *pld_context;
 	struct icnss_uevent_fw_down_data *uevent_data = NULL;
-	struct pld_uevent_data data;
+	struct pld_uevent_data data = {0};
 
 	pld_context = pld_get_global_context();
 	if (!pld_context)

+ 1 - 1
core/pld/src/pld_pcie.c

@@ -242,7 +242,7 @@ static void pld_pcie_notify_handler(struct pci_dev *pdev, int state)
 static void pld_pcie_uevent(struct pci_dev *pdev, uint32_t status)
 {
 	struct pld_context *pld_context;
-	struct pld_uevent_data data;
+	struct pld_uevent_data data = {0};
 
 	pld_context = pld_get_global_context();
 	if (!pld_context)

+ 2 - 2
core/pld/src/pld_pcie_fw_sim.c

@@ -239,7 +239,7 @@ static void pld_pcie_fw_sim_notify_handler(struct pci_dev *pdev, int state)
 static void pld_pcie_fw_sim_uevent(struct pci_dev *pdev, uint32_t status)
 {
 	struct pld_context *pld_context;
-	struct pld_uevent_data data;
+	struct pld_uevent_data data = {0};
 
 	pld_context = pld_get_global_context();
 	if (!pld_context)
@@ -485,7 +485,7 @@ static void pld_pcie_fw_sim_notify_handler(struct pci_dev *pdev, int state)
 static void pld_pcie_fw_sim_uevent(struct pci_dev *pdev, uint32_t status)
 {
 	struct pld_context *pld_context;
-	struct pld_uevent_data data;
+	struct pld_uevent_data data = {0};
 
 	pld_context = pld_get_global_context();
 	if (!pld_context)

+ 2 - 2
core/pld/src/pld_sdio.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -338,7 +338,7 @@ static void pld_sdio_uevent(struct sdio_func *sdio_func, uint32_t status)
 {
 	struct pld_context *pld_context;
 	struct device *dev = &sdio_func->dev;
-	struct pld_uevent_data data;
+	struct pld_uevent_data data = {0};
 
 	pld_context = pld_get_global_context();
 

+ 2 - 2
core/pld/src/pld_snoc_fw_sim.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -229,7 +229,7 @@ static int pld_snoc_fw_sim_uevent(struct device *dev,
 {
 	struct pld_context *pld_context;
 	struct icnss_uevent_fw_down_data *uevent_data = NULL;
-	struct pld_uevent_data data;
+	struct pld_uevent_data data = {0};
 
 	pld_context = pld_get_global_context();
 	if (!pld_context)

+ 1 - 1
core/pld/src/pld_usb.c

@@ -225,7 +225,7 @@ static void pld_usb_shutdown(struct usb_interface *interface)
 static void pld_usb_uevent(struct usb_interface *interface, uint32_t status)
 {
 	struct pld_context *pld_context;
-	struct pld_uevent_data data;
+	struct pld_uevent_data data = {0};
 	struct usb_device *pdev = interface_to_usbdev(interface);
 
 	pld_context = pld_get_global_context();