linux-loongson/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 media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Makefile media: allegro: add HEVC NAL unit generator 2021-01-27 16:04:04 +01:00
nal-h264.c media: allegro: extract nal value lookup functions to header 2021-10-20 15:59:41 +01:00
nal-h264.h media: allegro: write correct colorspace into SPS 2021-10-20 16:00:28 +01:00
nal-hevc.c media: allegro: nal-hevc: implement generator for vui 2021-10-20 16:01:23 +01:00
nal-hevc.h media: allegro: nal-hevc: Replace array[1] with array[N] 2024-05-31 13:51:16 +02:00
nal-rbsp.c media: allegro: add helper to report unsupported fields 2021-01-27 15:52:23 +01:00
nal-rbsp.h media: allegro: add helper to report unsupported fields 2021-01-27 15:52:23 +01:00