]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
sched: add sanity check in partition_sched_domains()
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 4 Nov 2008 08:20:23 +0000 (16:20 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 4 Nov 2008 09:25:13 +0000 (10:25 +0100)
commitfaa2f98f856e89d1afb6e4a91707284d242e816e
tree3674a562130b89bf127c188102af6335cc5c4469
parenta17e2260926f681a0eb983c1e3cb859ba2064bce
sched: add sanity check in partition_sched_domains()

Impact: cleanup, add debug check

It's wrong to make dattr_new = NULL if doms_new == NULL, it introduces
memory leak if dattr_new != NULL. Fortunately dattr_new is always NULL
in this case. So remove the code and add a sanity check.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c