• M
    cpumask: fix bug in use cpumask_var_t in irq_desc · 802bf931
    Mike Travis 提交于
    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: NMike Travis <travis@sgi.com>
    Cc: Yinghai Lu <yinghai@kernel.org>
    802bf931
irq.h 14.9 KB