From 305da26660ee1ed98629df6b0969f0175bf519d0 Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Mon, 18 Jun 2018 15:17:27 -0700 Subject: [PATCH] qcacmn: Avoid un-initialized access in wifi_pos_get_ch_info In function wifi_pos_get_ch_info initialize channel list array before use. Change-Id: I3b6071448fddee4aa62e833fb9bcc50aefffd7a9 CRs-Fixed: 2254723 --- umac/wifi_pos/src/wifi_pos_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/wifi_pos/src/wifi_pos_main.c b/umac/wifi_pos/src/wifi_pos_main.c index addb6cb8083f..0a7dc83ce159 100644 --- a/umac/wifi_pos/src/wifi_pos_main.c +++ b/umac/wifi_pos/src/wifi_pos_main.c @@ -527,7 +527,7 @@ static void wifi_pos_get_ch_info(struct wlan_objmgr_psoc *psoc, struct wifi_pos_driver_caps *caps) { uint32_t i, num_ch = 0; - struct regulatory_channel ch_lst[NUM_CHANNELS]; + struct regulatory_channel ch_lst[NUM_CHANNELS] = {{0}}; wlan_objmgr_iterate_obj_list(psoc, WLAN_PDEV_OP, wifi_pos_pdev_iterator,