qcacmn: Return error when unpermitted character is parsed in ini
Currently, when an unpermitted character is added to ini, driver flags as an unknown config item and continues parsing. This could be an issue. Change is to return error when invalid character is parsed in ini. Change-Id: I0249d187f0e05a31dd256d5de56798a575903e5b CRs-Fixed: 3354669
这个提交包含在:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 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
|
||||
@@ -88,5 +88,14 @@ qdf_ini_parse(const char *ini_path, void *context,
|
||||
QDF_STATUS qdf_ini_section_parse(const char *ini_path, void *context,
|
||||
qdf_ini_item_cb item_cb,
|
||||
const char *section_name);
|
||||
|
||||
/**
|
||||
* qdf_valid_ini_check() - check ini file for invalid characters
|
||||
* @path: path to ini file
|
||||
*
|
||||
* Return: true if no invalid character found, false otherwise
|
||||
*/
|
||||
bool qdf_valid_ini_check(const char *path);
|
||||
|
||||
#endif /* __QDF_PARSE_H */
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户