]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: chips-media: wave5: Fix Potential Probe Resource Leak
authorBrandon Brnich <b-brnich@ti.com>
Tue, 16 Dec 2025 21:34:13 +0000 (15:34 -0600)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 5 Jan 2026 14:56:32 +0000 (15:56 +0100)
commit336367fab9b96db7b0ee174443c426fc6c53b912
tree6126a3622e2c496dbd5924dc54dd378bd59501ab
parent8e30a27f4aab0a0482630f4283ca2a994fd78d1d
media: chips-media: wave5: Fix Potential Probe Resource Leak

After kthread creation during probe sequence, a handful of other
failures could occur. If this were to happen, the kthread is never
explicitly deleted which results in a resource leak. Add explicit cleanup
of this resource.

Signed-off-by: Brandon Brnich <b-brnich@ti.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/chips-media/wave5/wave5-vpu.c