From 963b9daa31684e9aeff842267f603dcf07ee435d Mon Sep 17 00:00:00 2001 From: Vivek Date: Thu, 28 Feb 2019 14:37:22 +0530 Subject: [PATCH] qcacmn: Explicit initialization of vdev id The vdevid used in the wlan_ser_print_history function is not initialized by default and we pass them to subsequent function without initializing though that would not be used. Initialize the vdev id by default irrespective of its use. Change-Id: I0c45528bdfcb8c6e37a40ea9a68f5c56c1cda753 CRs-Fixed: 2407068 --- umac/cmn_services/serialization/src/wlan_serialization_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/cmn_services/serialization/src/wlan_serialization_debug.c b/umac/cmn_services/serialization/src/wlan_serialization_debug.c index 20dd07afc4..23236396d6 100644 --- a/umac/cmn_services/serialization/src/wlan_serialization_debug.c +++ b/umac/cmn_services/serialization/src/wlan_serialization_debug.c @@ -165,7 +165,7 @@ QDF_STATUS wlan_ser_print_history( struct wlan_serialization_pdev_queue *pdev_q; struct wlan_serialization_vdev_queue *vdev_q; bool for_vdev_queue = false; - uint32_t vdev_id; + uint32_t vdev_id = WLAN_INVALID_VDEV_ID; ser_pdev = wlan_serialization_get_pdev_obj( wlan_vdev_get_pdev(vdev));