From: Mike Travis Date: Sun, 11 Jan 2009 05:58:09 +0000 (-0800) Subject: cpumask: fix bug in use cpumask_var_t in irq_desc X-Git-Tag: v2.6.30-rc1~3^2~6^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=802bf931f2688ad125b73db597ce63cc842fb27a;p=pandora-kernel.git cpumask: fix bug in use cpumask_var_t in irq_desc Impact: fix bug where new irq_desc uses old cpumask pointers which are freed. As Yinghai pointed out, init_copy_one_irq_desc() copies the old desc to the new desc overwriting the cpumask pointers. Since the old_desc and the cpumask pointers are freed, then memory corruption will occur if these old pointers are used. Move the allocation of these pointers to after the copy. Signed-off-by: Mike Travis Cc: Yinghai Lu --- Reading git-diff-tree failed