regulator: event: Ensure atomicity for sequence number
authorNaresh Solanki <naresh.solanki@9elements.com>
Thu, 4 Jan 2024 14:13:13 +0000 (19:43 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 4 Jan 2024 20:02:06 +0000 (20:02 +0000)
commit1cadc04c1a1ac5015c2eb0fadfabf4b61bbe167e
treeef26b1d4ed61031079e93c1a68c8fcb1ae3a932a
parent51088e5cc241178ccd6db2dd6d161dc8df32057d
regulator: event: Ensure atomicity for sequence number

Previously, the sequence number in the regulator event subsystem was
updated without atomic operations, potentially leading to race
conditions. This commit addresses the issue by making the sequence
number atomic.

Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
Link: https://msgid.link/r/20240104141314.3337037-1-naresh.solanki@9elements.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/event.c