linux/drivers/media/pci/cx88
Chen Changcheng e228b8b1a5 media: cx88: fix memory leak in cx8802_register_driver() error path
In cx8802_register_driver(), when drv->probe(driver) fails (non-zero),
the allocated cx8802_driver struct is freed neither in the else branch
nor later in cx8802_unregister_driver() (which only frees entries that
were added to dev->drvlist on success). Each failed probe leaks the
driver struct.

Add kfree(driver) in the else branch to fix the leak.

Signed-off-by: Chen Changcheng <chenchangcheng@kylinos.cn>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
2026-07-28 15:17:55 +02:00
..
cx88-alsa.c media: pci: Use PCI_DEVICE macros and drop zeros from pci_device_id arrays 2026-07-15 17:12:54 +02:00
cx88-blackbird.c media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
cx88-cards.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cx88-core.c media: cx88: Fix PAL-Nc standard 2022-06-20 10:30:30 +01:00
cx88-dsp.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cx88-dvb.c media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
cx88-i2c.c
cx88-input.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
cx88-mpeg.c media: cx88: fix memory leak in cx8802_register_driver() error path 2026-07-28 15:17:55 +02:00
cx88-reg.h
cx88-tvaudio.c
cx88-vbi.c media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
cx88-video.c media: pci: Use PCI_DEVICE macros and drop zeros from pci_device_id arrays 2026-07-15 17:12:54 +02:00
cx88-vp3054-i2c.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cx88-vp3054-i2c.h
cx88.h media: xc2028: rename the driver from tuner-xc2028 2022-03-12 16:59:50 +01:00
Kconfig Revert "media: Kconfig: better support hybrid TV devices" 2020-04-14 11:00:30 +02:00
Makefile