]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: pcm: Improve the fix for race of buffer access at PCM OSS layer
authorJaroslav Kysela <perex@perex.cz>
Wed, 7 Jan 2026 21:36:42 +0000 (22:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Jan 2026 07:07:54 +0000 (08:07 +0100)
commit47c27c9c9c720bc93fdc69605d0ecd9382e99047
treef74df2784a5ee1bca174f3f9ce1bc96481fa95c2
parent9ed7a28225af02b74f61e7880d460db49db83758
ALSA: pcm: Improve the fix for race of buffer access at PCM OSS layer

Handle the error code from snd_pcm_buffer_access_lock() in
snd_pcm_runtime_buffer_set_silence() function.

Found by Alexandros Panagiotou <apanagio@redhat.com>

Fixes: 93a81ca06577 ("ALSA: pcm: Fix race of buffer access at PCM OSS layer")
Cc: stable@vger.kernel.org # 6.15
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://patch.msgid.link/20260107213642.332954-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/core/oss/pcm_oss.c
sound/core/pcm_native.c