aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorBianca Lutz <[email protected]>2011-07-13 18:13:36 +0000
committerIngo Molnar <[email protected]>2011-07-21 16:01:51 +0000
commit99bc52429f11d1f4f81495ac8237085aaeb6bccf (patch)
treeaf5b2f44ceb1382b836dc9171fe296b3d35dd48d /net/tipc
parentsched: Remove unused function cpu_cfs_rq() (diff)
downloadkernel-99bc52429f11d1f4f81495ac8237085aaeb6bccf.tar.gz
kernel-99bc52429f11d1f4f81495ac8237085aaeb6bccf.zip
sched: Do not attempt to destroy uninitialized rt_bandwidth
If a task group is to be created and alloc_fair_sched_group() fails, then the rt_bandwidth of the corresponding task group is not yet initialized. The caller, sched_create_group(), starts a clean up procedure which calls free_rt_sched_group() which unconditionally destroys the not yet initialized rt_bandwidth. This crashes or hangs the system in lock_hrtimer_base(): UP systems dereference a NULL pointer, while SMP systems loop endlessly on a condition that cannot become true. This patch simply avoids the destruction of rt_bandwidth when the initialization code path was not reached. (This was discovered by accident with a custom kernel modification.) Signed-off-by: Bianca Lutz <[email protected]> Signed-off-by: Jan Schoenherr <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions