mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
eth: bnxt: cancel IRQ notifier before freeing affinity mask
bnxt_irq_affinity_notify() copies into irq->cpu_mask.
Cancel the notifier before freeing irq->cpu_mask.
Fixes: c214410c47 ("bnxt_en: Add TPH support in BNXT driver")
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20260803193135.2030368-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
dd057113ac
commit
c703f62c30
|
|
@ -11878,14 +11878,14 @@ static void bnxt_free_irq(struct bnxt *bp)
|
|||
|
||||
irq = &bp->irq_tbl[map_idx];
|
||||
if (irq->requested) {
|
||||
bnxt_release_irq_notifier(irq);
|
||||
|
||||
if (irq->have_cpumask) {
|
||||
irq_update_affinity_hint(irq->vector, NULL);
|
||||
free_cpumask_var(irq->cpu_mask);
|
||||
irq->have_cpumask = 0;
|
||||
}
|
||||
|
||||
bnxt_release_irq_notifier(irq);
|
||||
|
||||
free_irq(irq->vector, bp->bnapi[i]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user