aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorEugen Hristev <[email protected]>2023-12-25 15:36:15 +0200
committerUlf Hansson <[email protected]>2024-01-23 13:19:15 +0100
commitc41336f4d69057cbf88fed47951379b384540df5 (patch)
tree41299a8b2bb1340c2e342b5917ac1f7a790f2153 /lib/test_fortify/write_overflow-strncpy-src.c
parentf0e4a1356466ec1858ae8e5c70bea2ce5e55008b (diff)
pmdomain: mediatek: fix race conditions with genpd
If the power domains are registered first with genpd and *after that* the driver attempts to power them on in the probe sequence, then it is possible that a race condition occurs if genpd tries to power them on in the same time. The same is valid for powering them off before unregistering them from genpd. Attempt to fix race conditions by first removing the domains from genpd and *after that* powering down domains. Also first power up the domains and *after that* register them to genpd. Fixes: 59b644b01cf4 ("soc: mediatek: Add MediaTek SCPSYS power domains") Signed-off-by: Eugen Hristev <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions