linux/drivers/media
Wei Chen 2649c1a20e media: hi846: Fix memleak in hi846_init_controls()
hi846_init_controls doesn't clean the allocated ctrl_hdlr
in case there is a failure, which causes memleak. Add
v4l2_ctrl_handler_free to free the resource properly.

Fixes: e8c0882685 ("media: i2c: add driver for the SK Hynix Hi-846 8M pixel camera")
Signed-off-by: Wei Chen <harperchen1110@gmail.com>
Reviewed-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-04-11 18:54:00 +02:00
..
cec media: tegra_cec: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
common media: saa7146: drop overlay support 2023-03-20 00:27:04 +01:00
dvb-core Driver Core changes for 6.2-rc1 2022-12-16 03:54:54 -08:00
dvb-frontends media: zd1301_demod: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: hi846: Fix memleak in hi846_init_controls() 2023-04-11 18:54:00 +02:00
mc media: mc: entity: Fix minor issues in comments and documentation 2023-02-06 08:37:12 +01:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: saa7134: fix use after free bug in saa7134_finidev due to race condition 2023-04-11 17:10:10 +02:00
platform media: imx: imx7-media-csi: Fail on invalid type in VIDIOC_G_SELECTION 2023-04-11 18:11:53 +02:00
radio media: radio-platform-si4713: Convert to platform remove callback returning void 2023-04-11 16:59:20 +02:00
rc media: sunxi-cir: Convert to platform remove callback returning void 2023-04-11 16:59:21 +02:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: vivid-core: Convert to platform remove callback returning void 2023-04-11 16:59:21 +02:00
tuners media: it913x: Convert to platform remove callback returning void 2023-04-11 16:59:21 +02:00
usb media: au0828: remove unnecessary (void*) conversions 2023-04-11 17:10:11 +02:00
v4l2-core media: v4l: async: Return async sub-devices to subnotifier list 2023-04-11 18:54:00 +02:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00