]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Add spinlock to stop_urbs()
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Sep 2021 08:08:42 +0000 (10:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 30 Sep 2021 11:55:23 +0000 (13:55 +0200)
commit46549c28717b38b44a65011bbe3656f3a19bd058
treefe94bad6c8e65f360d7121d0e5d21206024614fc
parenta012869330749f6fe1f857f93dd0a0dca719abcd
ALSA: usb-audio: Add spinlock to stop_urbs()

In theory, stop_urbs() may be called concurrently.
Although we have the state check beforehand, it's safer to apply
ep->lock during the critical list head manipulations.

Link: https://lore.kernel.org/r/20210929080844.11583-8-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/endpoint.c