android_kernel_sony_sdm845/drivers/media
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yang Yingliang 83d4b1ae98 media: solo6x10: fix possible memory leak in solo_sysfs_init()
[ Upstream commit 7f5866dd96d95b74e439f6ee17b8abd8195179fb ]

If device_register() returns error in solo_sysfs_init(), the
name allocated by dev_set_name() need be freed. As comment of
device_register() says, it should use put_device() to give up
the reference in the error path. So fix this by calling
put_device(), then the name can be freed in kobject_cleanup().

Fixes: dcae5dacbc ("[media] solo6x10: sync to latest code from Bluecherry's git repo")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-07 12:07:17 +01:00
..
common media: saa7146: hexium_gemini: Fix a NULL pointer dereference in hexium_attach() 2022-01-27 08:47:37 +01:00
dvb-core media: dmxdev: fix UAF when dvb_register_device() fails 2022-01-27 08:47:33 +01:00
dvb-frontends media: dvb-frontends/drxk: initialize err to 0 2022-11-10 15:46:06 +01:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2022-01-29 10:15:58 +01:00
i2c media: i2c: ad5820: Fix error path 2023-01-07 12:07:16 +01:00
mmc
pci media: solo6x10: fix possible memory leak in solo_sysfs_init() 2023-01-07 12:07:17 +01:00
platform media: vivid: fix compose size exceed boundary 2023-01-07 12:07:16 +01:00
radio media: si470x: Avoid card name truncation 2021-11-26 11:48:33 +01:00
rc media: igorplugusb: receiver overflow should be reported 2022-01-27 08:47:37 +01:00
spi gs1662: drop kfree for memory allocated with devm_kzalloc 2017-01-26 08:24:45 +01:00
tuners media: msi001: fix possible null-ptr-deref in msi001_probe() 2022-01-27 08:47:34 +01:00
usb media: pvrusb2: fix memory leak in pvr_probe 2022-09-05 10:23:57 +02:00
v4l2-core media: v4l2-dv-timings.c: fix too strict blanking sanity checks 2022-12-14 11:24:33 +01:00
cec-edid.c [media] cec-edid: check for IEEE identifier 2016-08-22 14:04:51 -03:00
Kconfig [media] media Kconfig: improve the spi integration 2016-09-19 14:37:05 -03:00
Makefile [media] Add GS1662 driver, a video serializer 2016-09-19 14:36:24 -03:00
media-device.c media: mc-device.c: don't memset __user pointer contents 2019-08-04 09:33:16 +02:00
media-devnode.c
media-entity.c media: entity: Fix stream count check 2017-07-12 15:01:02 +02:00