diff options
| author | Pierre-Louis Bossart <[email protected]> | 2021-09-24 14:24:16 -0500 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2021-09-28 10:22:26 +0200 |
| commit | 868ddfcef31ff93ea8961b2e81ea7fe12f6f144b (patch) | |
| tree | 8026a505f9b4509e8f2a43431ea61f0b2bffa4c6 /tools | |
| parent | 1465d06a6d8580e73ae65f8590392df58c5ed2fd (diff) | |
ALSA: hda: hdac_ext_stream: fix potential locking issues
The code for hdac_ext_stream seems inherited from hdac_stream, and
similar locking issues are present: the use of the bus->reg_lock
spinlock is inconsistent, with only writes to specific fields being
protected.
Apply similar fix as in hdac_stream by protecting all accesses to
'link_locked' and 'decoupled' fields, with a new helper
snd_hdac_ext_stream_decouple_locked() added to simplify code
changes.
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions