Thomas Gleixner 0211e12dd0 genirq/affinity: Don't return with empty affinity masks on error
When the allocation of node_to_possible_cpumask fails, then
irq_create_affinity_masks() returns with a pointer to the empty affinity
masks array, which will cause malfunction.

Reorder the allocations so the masks array allocation comes last and every
failure path returns NULL.

Fixes: 9a0ef98e186d ("genirq/affinity: Assign vectors to all present CPUs")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Ming Lei <ming.lei@redhat.com>
2018-04-06 12:19:50 +02:00
..
2018-03-20 14:23:28 +01:00
2018-03-20 14:23:28 +01:00
2018-03-20 14:23:28 +01:00
2018-03-20 14:23:28 +01:00
2018-03-20 14:23:28 +01:00
2018-03-20 14:23:28 +01:00
2018-03-20 14:23:28 +01:00
2018-03-20 14:23:28 +01:00
2018-03-20 14:23:28 +01:00
2018-03-20 14:23:27 +01:00
2018-03-20 14:23:27 +01:00