• Mike Travis's avatar
    cpumask: fix bug in use cpumask_var_t in irq_desc · 802bf931
    Mike Travis authored
    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: default avatarMike Travis <travis@sgi.com>
    Cc: Yinghai Lu <yinghai@kernel.org>
    802bf931
numa_migrate.c 2.92 KB