Merge "icnss: NULL terminate the fw build timestamp string"
This commit is contained in:
commit
36ffd181f1
1 changed files with 4 additions and 0 deletions
|
@ -3035,6 +3035,8 @@ EXPORT_SYMBOL(icnss_disable_irq);
|
|||
|
||||
int icnss_get_soc_info(struct device *dev, struct icnss_soc_info *info)
|
||||
{
|
||||
char *fw_build_timestamp = NULL;
|
||||
|
||||
if (!penv || !dev) {
|
||||
icnss_pr_err("Platform driver not initialized\n");
|
||||
return -EINVAL;
|
||||
|
@ -3047,6 +3049,8 @@ int icnss_get_soc_info(struct device *dev, struct icnss_soc_info *info)
|
|||
info->board_id = penv->board_info.board_id;
|
||||
info->soc_id = penv->soc_info.soc_id;
|
||||
info->fw_version = penv->fw_version_info.fw_version;
|
||||
fw_build_timestamp = penv->fw_version_info.fw_build_timestamp;
|
||||
fw_build_timestamp[QMI_WLFW_MAX_TIMESTAMP_LEN_V01] = '\0';
|
||||
strlcpy(info->fw_build_timestamp,
|
||||
penv->fw_version_info.fw_build_timestamp,
|
||||
QMI_WLFW_MAX_TIMESTAMP_LEN_V01 + 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue