If the part of scenario name sent from client is same with among
the supported scenario name, strncmp() causes the issue.
In order to fix this issue, compare the full scenario name with strcmp():
Change-Id: Ibc712b0b4be2cb752506ac7094b27abd88e587b5
Reported-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
for (i = 0; i < g_pmqos->num; i++) {
name = g_pmqos->list[i].name;
support = g_pmqos->list[i].support;
- if (!strncmp(name, name_from, strlen(name)) &&
- support) {
+ if (!strcmp(name, name_from) && support) {
ret = 0;
break;
}
pmqos_head = g_list_remove(pmqos_head, (gconstpointer)cpu);
free(cpu);
- if (strncmp(unlock_timer_owner.name, name, strlen(name)))
+ if (strcmp(unlock_timer_owner.name, name))
goto out;
/* undata cpu */
pmqos_unlock_timeout_update();