OSDN Git Service

ALSA: control: Take lock in snd_ctl_find_id() and snd_ctl_find_numid()
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Jul 2023 14:13:03 +0000 (16:13 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Jul 2023 08:03:00 +0000 (10:03 +0200)
commit9c2cc5652e4390bd4492433d96ad4caa785b09de
treee59325e3de7ece5af318864cb74358043e961ff1
parentb1e055f67611daf098e27e8731386eeb5257bde3
ALSA: control: Take lock in snd_ctl_find_id() and snd_ctl_find_numid()

Now all needed callers have been replaced with *_locked() versions,
let's turn on the locking in snd_ctl_find_id() and
snd_ctl_find_numid().

This patch also adds the lockdep assertions for debugging, too.

Link: https://lore.kernel.org/r/20230718141304.1032-11-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c