linux/drivers/media
Rafael Mendonca 80113026d4 media: i2c: hi846: Fix memory leak in hi846_parse_dt()
If any of the checks related to the supported link frequencies fail, then
the V4L2 fwnode resources don't get released before returning, which leads
to a memleak. Fix this by properly freeing the V4L2 fwnode data in a
designated label.

Fixes: e8c0882685 ("media: i2c: add driver for the SK Hynix Hi-846 8M pixel camera")
Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com>
Reviewed-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
Reviewed-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
2022-10-25 10:37:03 +03:00
..
cec media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
common treewide: use get_random_{u8,u16}() when possible, part 1 2022-10-11 17:42:58 -06:00
dvb-core media: dvb_vb2: fix possible out of bound access 2022-09-27 10:24:44 +02:00
dvb-frontends media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: i2c: hi846: Fix memory leak in hi846_parse_dt() 2022-10-25 10:37:03 +03:00
mc media: mc: convert pipeline funcs to take media_pad 2022-09-24 09:22:30 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
platform media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
radio media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
rc media: mceusb: set timeout to at least timeout provided 2022-09-24 07:50:42 +02:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
tuners media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
usb media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
v4l2-core media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
Kconfig media: remove reference to CONFIG_EMBEDDED in MEDIA_SUPPORT_FILTER 2022-09-08 18:19:29 +02:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00