mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "cnss2: NULL terminate FW build ID string"
This commit is contained in:
commit
9bbfc83048
1 changed files with 4 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. */
|
||||
/* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved. */
|
||||
|
||||
#include <linux/firmware.h>
|
||||
#include <linux/module.h>
|
||||
|
|
@ -401,9 +401,11 @@ int cnss_wlfw_tgt_cap_send_sync(struct cnss_plat_data *plat_priv)
|
|||
resp->fw_version_info.fw_build_timestamp,
|
||||
QMI_WLFW_MAX_TIMESTAMP_LEN + 1);
|
||||
}
|
||||
if (resp->fw_build_id_valid)
|
||||
if (resp->fw_build_id_valid) {
|
||||
resp->fw_build_id[QMI_WLFW_MAX_BUILD_ID_LEN] = '\0';
|
||||
strlcpy(plat_priv->fw_build_id, resp->fw_build_id,
|
||||
QMI_WLFW_MAX_BUILD_ID_LEN + 1);
|
||||
}
|
||||
if (resp->voltage_mv_valid) {
|
||||
plat_priv->cpr_info.voltage = resp->voltage_mv;
|
||||
cnss_pr_dbg("Voltage for CPR: %dmV\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue