From: Li Zefan Date: Tue, 4 Nov 2008 08:20:23 +0000 (+0800) Subject: sched: add sanity check in partition_sched_domains() X-Git-Tag: v2.6.29-rc1~538^2~68 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faa2f98f856e89d1afb6e4a91707284d242e816e;p=pandora-kernel.git 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 Acked-by: Peter Zijlstra Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed