ALSA: pcm: Add more disconnection checks at file ops
[ Upstream commit 36df2427 ] 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: 4f9d6743 ("ALSA: usb-audio: Notify xrun for low-latency mode") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading