diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2019-07-22 12:24:34 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-16 11:12:47 +0300 |
commit | f1ea9a6387709a6f13665140f74cd8df0ec9337d (patch) | |
tree | 6a93b4f3b57f0370916014a1b8f8c0d40954af62 /fs | |
parent | b9e2fa1e15b7a9edfe77d0059a2c7e8f31c58a15 (diff) | |
download | linux-f1ea9a6387709a6f13665140f74cd8df0ec9337d.tar.xz |
ALSA: compress: Prevent bypasses of set_params
[ Upstream commit 26c3f1542f5064310ad26794c09321780d00c57d ]
Currently, whilst in SNDRV_PCM_STATE_OPEN it is possible to call
snd_compr_stop, snd_compr_drain and snd_compr_partial_drain, which
allow a transition to SNDRV_PCM_STATE_SETUP. The stream should
only be able to move to the setup state once it has received a
SNDRV_COMPRESS_SET_PARAMS ioctl. Fix this issue by not allowing
those ioctls whilst in the open state.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions