aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorCharles Keepax <[email protected]>2024-08-02 11:57:34 +0100
committerMark Brown <[email protected]>2024-08-02 14:04:41 +0100
commit93afd028fb5f06a46a32375fd1f0473451eb1c5a (patch)
tree4fb3b7a7cadfb656370af85634916035e8e5ba43 /lib/test_fortify/write_overflow-strncpy-src.c
parent4791c422981350d0de4ad02a14a08b99c766d06f (diff)
ASoC: cs42l43: Cache shutter IRQ control pointers
The microphone/speaker privacy shutter ALSA control handlers need to call pm_runtime_resume, since the hardware needs to be powered up to check the hardware state of the shutter. The IRQ handler for the shutters also needs to notify the ALSA control to inform user-space the shutters updated. However this leads to a mutex inversion, between the sdw_dev_lock and the controls_rwsem. To avoid this mutex inversion cache the kctl pointers before the IRQ handler, which avoids the need to lookup the control and take the controls_rwsem. Suggested-by: Jaroslav Kysela <[email protected]> Signed-off-by: Charles Keepax <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions