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)
committerTakashi Iwai <tiwai@suse.de>
Thu, 2 Dec 2021 08:02:22 +0000 (09:02 +0100)
commit6665bb30a6b1a4a853d52557c05482ee50e71391
tree1cbbadc3232f92cb94e480d2362dd2664fba938a
parent8839c8c0f77ab8fc0463f4ab8b37fca3f70677c2
ALSA: pcm: oss: Handle missing errors in snd_pcm_oss_change_params*()

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