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)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Oct 2021 07:16:56 +0000 (09:16 +0200)
commit36df2427ac3ea04510368561c8cee22388a7434a
tree998f158183ba7e457652a80571b082858a2c1f16
parent23939115be181bc5dbc33aa8471adcdbffa28910
ALSA: pcm: Add more disconnection checks at file ops

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>
sound/core/pcm_native.c