ALSA: pcm: oss: Handle missing errors in snd_pcm_oss_change_params*()
authorTakashi Iwai <tiwai@suse.de>
Wed, 1 Dec 2021 07:36:06 +0000 (08:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Dec 2021 10:32:38 +0000 (11:32 +0100)
commit07977a3f3d55b29e796dbf1134ebbceeaa4e8732
tree3fbebb0659eb84ceb84ad28d51ee485254fd0115
parentad45babf7886e7a212ee1d5eda9ef49f696db43c
ALSA: pcm: oss: Handle missing errors in snd_pcm_oss_change_params*()

commit 6665bb30a6b1a4a853d52557c05482ee50e71391 upstream.

A couple of calls in snd_pcm_oss_change_params_locked() ignore the
possible errors.  Catch those errors and abort the operation for
avoiding further problems.

Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20211201073606.11660-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/oss/pcm_oss.c