mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Initialize reg_cap in init_deinit_populate_phy_reg_cap
Initialize local array reg_cap in init_deinit_populate_phy_reg_cap to avoid accessing uninitialized fields in the array. Change-Id: I9afb8d47cc12b3d1626aa64a52f9583d45df5f34 CRs-Fixed: 2232822
This commit is contained in:
parent
f0e1361efe
commit
5539b45b88
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ int init_deinit_populate_phy_reg_cap(struct wlan_objmgr_psoc *psoc,
|
|||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
struct wlan_psoc_hal_reg_capability cap;
|
||||
struct wlan_psoc_host_hal_reg_capabilities_ext
|
||||
reg_cap[PSOC_MAX_PHY_REG_CAP];
|
||||
reg_cap[PSOC_MAX_PHY_REG_CAP] = {{0} };
|
||||
|
||||
if (service_ready) {
|
||||
status = wmi_extract_hal_reg_cap(handle, event, &cap);
|
||||
|
|
|
|||
Loading…
Reference in a new issue