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

Skip to content
Commit 05489a7b authored by Srinivas Rao L's avatar Srinivas Rao L Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSrinivas Rao L <lsrao@codeaurora.org>
parent 8a8972d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment