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)
commit0ef74366bc150dda4f53c546dfa6e8f7c707e087
treefe94bad6c8e65f360d7121d0e5d21206024614fc
parentd215f63d49da9a8803af3e81acd6cad743686573
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