mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
qcacmn: Fix parse failure in qdf_bool_parse()
qdf_bool_parse() fails to advance the parsing cursor after consuming valid characters. Advance the cursor after valid input in qdf_bool_parse() to avoid failing to parse valid boolean expressions. Change-Id: I904d5eed638e215e9821e140feb5286fffe37b7b CRs-Fixed: 2194546
This commit is contained in:
parent
6523a02ecc
commit
96ad17d131
1 changed files with 1 additions and 0 deletions
|
|
@ -340,6 +340,7 @@ QDF_STATUS qdf_bool_parse(char *bool_str, bool *out_bool)
|
|||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
bool_str++;
|
||||
bool_str = qdf_str_left_trim(bool_str);
|
||||
if (bool_str[0] != '\0')
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue