diff --git a/umac/regulatory/core/src/reg_services_common.c b/umac/regulatory/core/src/reg_services_common.c index 99607cbbd1..73e90117a0 100644 --- a/umac/regulatory/core/src/reg_services_common.c +++ b/umac/regulatory/core/src/reg_services_common.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2014-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. 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 @@ -8231,7 +8231,7 @@ QDF_STATUS reg_get_client_power_for_connecting_ap(struct wlan_objmgr_pdev *pdev, uint16_t *eirp_psd_power) { struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj; - enum reg_6g_client_type client_type; + enum reg_6g_client_type client_type = REG_DEFAULT_CLIENT; struct regulatory_channel *master_chan_list; QDF_STATUS status = QDF_STATUS_SUCCESS; diff --git a/wmi/src/wmi_unified.c b/wmi/src/wmi_unified.c index 4f435eb1bf..354dd1ceca 100644 --- a/wmi/src/wmi_unified.c +++ b/wmi/src/wmi_unified.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2015-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. 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 @@ -1182,7 +1182,7 @@ static int debug_wmi_log_size_show(struct seq_file *m, void *v) ((struct seq_file *)file->private_data)->private;\ struct wmi_log_buf_t *wmi_log = &wmi_handle->log_info. \ wmi_##func_base##_buf_info; \ - char locbuf[50]; \ + char locbuf[50] = {0x00}; \ \ if ((!buf) || (count > 50)) \ return -EFAULT; \ @@ -1238,7 +1238,7 @@ static ssize_t debug_wmi_enable_write(struct file *file, const char __user *buf, wmi_unified_t wmi_handle = ((struct seq_file *)file->private_data)->private; int k, ret; - char locbuf[50]; + char locbuf[50] = {0x00}; if ((!buf) || (count > 50)) return -EFAULT;