]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: compress_offload: use safe list iteration in snd_compr_task_seq()
authorJaroslav Kysela <perex@perex.cz>
Tue, 17 Dec 2024 10:07:07 +0000 (11:07 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 20 Dec 2024 08:51:36 +0000 (09:51 +0100)
commitf25a51b47c61540585a9e8a4e16f91677ebcbbc4
tree18396b17c9e4ce7c3c1b5b450e628600ca5c5752
parent6018f2fe1089b46c6c9eb136338eca7b16a92331
ALSA: compress_offload: use safe list iteration in snd_compr_task_seq()

The sequence function can call snd_compr_task_free_one(). Use
list_for_each_entry_safe_reverse() to make sure that the used
pointers are safe.

Link: https://lore.kernel.org/linux-sound/f2769cff-6c7a-4092-a2d1-c33a5411a182@stanley.mountain/
Fixes: 04177158cf98 ("ALSA: compress_offload: introduce accel operation mode")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20241217100707.732766-1-perex@perex.cz
sound/core/compress_offload.c