]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: pcm: Add more disconnection checks at file ops
authorTakashi Iwai <tiwai@suse.de>
Wed, 6 Oct 2021 14:22:14 +0000 (16:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:30 +0000 (19:51 +0100)
commitf0294f444afca0f07d638a46e29eba56c8b6ef49
treebc5ee01195747f7f560a4bc013f8b07f5adbf670
parent0d6cd1151e26fc7c2d5daa85e8984aaa685a1a12
ALSA: pcm: Add more disconnection checks at file ops

[ Upstream commit 36df2427ac3ea04510368561c8cee22388a7434a ]

In the case of hot-disconnection of a PCM device, all file operations
except for close should be rejected.  This patch adds more sanity
checks in the file operation code paths.

Link: https://lore.kernel.org/r/20211006142214.3089-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Stable-dep-of: 4f9d674377d0 ("ALSA: usb-audio: Notify xrun for low-latency mode")
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/core/pcm_native.c