diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2018-04-04 12:40:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-13 10:01:02 +0100 |
commit | 76369ed5bce3b31de6c21ebf216d01fd9c9d3476 (patch) | |
tree | b7e49b2ad262161d7e54426b90fc3a8aa3344e7f /tools | |
parent | 0840feb396aa78cdcac7f9b30f7678b68e22fddb (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