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 09:04:48 +0000 (10:04 +0100)
commit3d9b92b3b14690e8991b506961fdbe60bd3e49f5
tree34108f3ee7096c43f672eb0fda00ba7dbdeff4e2
parentb02a41eebcc36d4f07196780f2e165ca2c499257
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