summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAli Ahmet Memiş <aliamemis@disroot.org>2026-10-11 21:06:17 +0300
committerTakashi Iwai <tiwai@suse.de>2026-10-12 16:51:22 +0200
commit682d6bb5f783adea7fa2a5b05166bff01b338081 (patch)
treeb2bd6a6b889c2bb790303602735988faba3dbee6 /tools/lib/python
parent16e585b72fdaf7f1d467fb82a85467f5acf21d2e (diff)
ALSA: control_led: Fix deadlock between sysfs writes and card disconnect
snd_ctl_led_disconnect() removes the ctl-led sysfs files while holding card->controls_rwsem. device_unregister() waits for running sysfs callbacks which can deadlock when a concurrent write causes the attach or detach callback to wait for controls_rwsem. Break kernfs active protection in the attach, detach and list callbacks and hold a module reference instead. Fixes: a135dfb5de15 ("ALSA: led control - add sysfs kcontrol LED marking layer") Signed-off-by: Ali Ahmet Memiş <aliamemis@disroot.org> Link: https://patch.msgid.link/20261011180627.1594051-1-aliamemis@disroot.org Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions