Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c06cd7c authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "genirq: call cancel_work_sync from irq_set_affinity_notifier"

parents 7fcb709d 018a779b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -356,6 +356,9 @@ irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify)
	desc->affinity_notify = notify;
	raw_spin_unlock_irqrestore(&desc->lock, flags);

	if (!notify && old_notify)
		cancel_work_sync(&old_notify->work);

	if (old_notify)
		kref_put(&old_notify->kref, old_notify->release);