Commit 5f4aafac by Serge Hallyn

cgmanager - fix (again) previous commit

Bad late-night commit. We were doing a while loop for a reason. Just initialize i to 0 before the while loop. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 449710f8
......@@ -1284,7 +1284,7 @@ static char *get_last_controller_in_list(char *list)
*/
static bool verify_final_subsystems(const char *cgroup_use)
{
int i = 0;
int i;
bool dropped_any = false;
bool bret = false;
const char *cgroup_pattern;
......@@ -1305,7 +1305,8 @@ static bool verify_final_subsystems(const char *cgroup_use)
if (!probe)
goto out;
for (i = 0; i < nr_subsystems; i++) {
i = 0;
while (i < nr_subsystems) {
char *p = get_last_controller_in_list(subsystems[i]);
if (!subsys_is_writeable(p, probe)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment