summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2018-04-04 12:40:07 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-13 10:01:02 +0100
commit76369ed5bce3b31de6c21ebf216d01fd9c9d3476 (patch)
treeb7e49b2ad262161d7e54426b90fc3a8aa3344e7f /tools
parent0840feb396aa78cdcac7f9b30f7678b68e22fddb (diff)
genirq/affinity: Don't return with empty affinity masks on error
commit 0211e12dd0a5385ecffd3557bc570dbad7fcf245 upstream. 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> Cc: Mihai Carabas <mihai.carabas@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions