Activate modes error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Power Policy Manager |
Fix Released
|
High
|
mabbas |
Bug Description
In the file daemon/policy.c: activate_mode(), the following codes to find the proper mode to be activated:
509 while(list) {
510 mode = list->data;
511 list = g_list_next(list);
512 if (((strcmp(name, mode->name) == 0) && !mode->active)) {
513 mode->active = 1;
514 PRINTF("Mode %s activated\n", mode->name);
515 break;
516 }
517 }
518
519 if (mode) {
520 list = g_list_
521 while (list) {
522 layer = list->data;
523 list = g_list_next(list);
524 activate_
525 }
526 }
527 }
But, in fact the last mode will always be activated, because if we can not find any mode the pointer mode will refer to the last one.
Changed in ppm: | |
assignee: | nobody → mohamed-abbas |
importance: | Undecided → High |
Changed in ppm: | |
status: | New → Triaged |
Changed in ppm: | |
milestone: | none → m8 |
Changed in ppm: | |
status: | Fix Committed → Fix Released |
commited changes to fix this bug