linux/drivers/media/platform/allegro-dvt
Joe Hattori c2b96a6818 media: platform: allgro-dvt: unregister v4l2_device on the error path
In allegro_probe(), the v4l2 device is not unregistered in the error
path, which results in a memory leak. Fix it by calling
v4l2_device_unregister() before returning error.

Fixes: d74d4e2359 ("media: allegro: move driver out of staging")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Reviewed-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2025-02-22 11:12:59 +01:00
..
allegro-core.c media: platform: allgro-dvt: unregister v4l2_device on the error path 2025-02-22 11:12:59 +01:00
allegro-mail.c media: allegro-dvt: increase buffer size in msg_type_name() 2023-09-27 10:47:22 +02:00
allegro-mail.h media: allegro: Annotate struct mcu_msg_push_buffers_internal with __counted_by 2023-10-07 10:55:45 +02:00
Kconfig
Makefile
nal-h264.c
nal-h264.h
nal-hevc.c
nal-hevc.h media: allegro: nal-hevc: Replace array[1] with array[N] 2024-05-31 13:51:16 +02:00
nal-rbsp.c
nal-rbsp.h