genirq: fix race condition in irq_affinity_notify
While irq_affinity_notify notifies each of the registered
notifiers, clients already register can call
irq_release_affinity_notifier just before it's notify call
getting called. If this happens, irq_release_affinity_notifier
can remove the notifier function from the list and still
irq_affinity_notify tries to call it's notifier.
Add notify_lock in irq descriptor and use this mutex
to protect the irq_release_affinity_notifier and
irq_affinity_notify.
Change-Id: I30f44421a20e7642485d9c4efbc476e147855b1b
Signed-off-by:
Srinivas Rao L <lsrao@codeaurora.org>
Loading
Please register or sign in to comment