[patch 3/4] sched: Rename bogus label in sched_setaffinity()

From: Thomas Gleixner
Date: Wed Dec 09 2009 - 05:15:47 EST


out_unlock: is bogus as there is nothing to unlock. Rename it.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
kernel/sched.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6-tip/kernel/sched.c
===================================================================
--- linux-2.6-tip.orig/kernel/sched.c
+++ linux-2.6-tip/kernel/sched.c
@@ -6558,11 +6558,11 @@ long sched_setaffinity(pid_t pid, const
}
retval = -EPERM;
if (!check_same_owner(p) && !capable(CAP_SYS_NICE))
- goto out_unlock;
+ goto out_free;

retval = security_task_setscheduler(p, 0, NULL);
if (retval)
- goto out_unlock;
+ goto out_free;

cpuset_cpus_allowed(p, cpus_allowed);
cpumask_and(new_mask, in_mask, cpus_allowed);
@@ -6581,7 +6581,7 @@ long sched_setaffinity(pid_t pid, const
goto again;
}
}
-out_unlock:
+out_free:
free_cpumask_var(new_mask);
out_free_cpus_allowed:
free_cpumask_var(cpus_allowed);


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/