Skip to content
Commit 802bf931 authored by Mike Travis's avatar Mike Travis Committed by Ingo Molnar
Browse files

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: default avatarMike Travis <travis@sgi.com>
Cc: Yinghai Lu <yinghai@kernel.org>
parent 651f8118
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment