kernel_optimize_test/drivers/media/pci
Zheyu Ma 3f94169aff media: cx25821: Fix the warning when removing the module
[ Upstream commit 2203436a4d24302871617373a7eb21bc17e38762 ]

When removing the module, we will get the following warning:

[   14.746697] remove_proc_entry: removing non-empty directory 'irq/21', leaking at least 'cx25821[1]'
[   14.747449] WARNING: CPU: 4 PID: 368 at fs/proc/generic.c:717 remove_proc_entry+0x389/0x3f0
[   14.751611] RIP: 0010:remove_proc_entry+0x389/0x3f0
[   14.759589] Call Trace:
[   14.759792]  <TASK>
[   14.759975]  unregister_irq_proc+0x14c/0x170
[   14.760340]  irq_free_descs+0x94/0xe0
[   14.760640]  mp_unmap_irq+0xb6/0x100
[   14.760937]  acpi_unregister_gsi_ioapic+0x27/0x40
[   14.761334]  acpi_pci_irq_disable+0x1d3/0x320
[   14.761688]  pci_disable_device+0x1ad/0x380
[   14.762027]  ? _raw_spin_unlock_irqrestore+0x2d/0x60
[   14.762442]  ? cx25821_shutdown+0x20/0x9f0 [cx25821]
[   14.762848]  cx25821_finidev+0x48/0xc0 [cx25821]
[   14.763242]  pci_device_remove+0x92/0x240

Fix this by freeing the irq before call pci_disable_device().

Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:20:52 +02:00
..
b2c2 media: b2c2: Add missing check in flexcop_pci_isr: 2022-01-27 10:54:11 +01:00
bt8xx media: bttv: fix WARNING regression on tunerless devices 2022-04-08 14:40:05 +02:00
cobalt media: cobalt: fix race condition in setting HPD 2021-07-14 16:55:51 +02:00
cx18
cx88 media: cx88-mpeg: clear interrupt status register before streaming video 2022-04-08 14:40:35 +02:00
cx23885 media: pci: cx23885: Fix the error handling in cx23885_initdev() 2022-06-09 10:20:51 +02:00
cx25821 media: cx25821: Fix the warning when removing the module 2022-06-09 10:20:52 +02:00
ddbridge
dm1105
dt3155
intel media: v4l2-async: Clean v4l2_async_notifier_add_fwnode_remote_subdev 2021-07-14 16:56:11 +02:00
ivtv ivtv: fix incorrect device_caps for ivtvfb 2022-04-08 14:40:10 +02:00
mantis
meye
netup_unidvb media: netup_unidvb: handle interrupt properly according to the firmware 2021-11-18 14:03:54 +01:00
ngene media: ngene: Fix out-of-bounds bug in ngene_command_config_free_buf() 2021-07-28 14:35:45 +02:00
pluto2
pt1
pt3
saa7134 media: saa7134: fix incorrect use to determine if list is empty 2022-04-08 14:40:10 +02:00
saa7146 media: saa7146: hexium_gemini: Fix a NULL pointer dereference in hexium_attach() 2022-01-27 10:54:16 +01:00
saa7164 media: media/saa7164: fix saa7164_encoder_register() memory leak bugs 2021-05-11 14:47:24 +02:00
smipcie media: smipcie: fix interrupt handling and IR timeout 2021-03-04 11:38:34 +01:00
solo6x10
sta2x11 media: drivers: media: pci: sta2x11: fix Kconfig dependency on GPIOLIB 2021-05-11 14:47:24 +02:00
ttpci
tw68
tw686x
tw5864
Kconfig
Makefile