diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 3b3ad6b08873..7ddb41dc77c5 100755 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -330,6 +330,8 @@ irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify) raw_spin_unlock_irqrestore(&desc->lock, flags); if (old_notify) { + if (notify) + WARN(1, "overwriting previous IRQ affinity notifier\n"); if (cancel_work_sync(&old_notify->work)) { /* Pending work had a ref, put that one too */ kref_put(&old_notify->kref, old_notify->release);