Zheyu Ma
1f0fc1dfb5
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:22:33 +02:00
..
2022-01-27 11:04:27 +01:00
2022-04-08 14:23:13 +02:00
2021-05-19 09:51:39 +02:00
2021-06-17 10:01:27 +02:00
2022-04-08 14:24:01 +02:00
2022-06-09 10:22:33 +02:00
2022-06-09 10:22:33 +02:00
2020-08-23 17:36:59 -05:00
2020-11-27 14:10:07 +01:00
2020-08-28 15:01:54 +02:00
2021-08-26 18:52:30 +02:00
2022-04-08 14:23:21 +02:00
2021-03-22 17:27:13 +01:00
2020-08-23 17:36:59 -05:00
2021-11-18 19:16:12 +01:00
2021-07-19 19:33:46 -05:00
2021-03-22 13:04:05 +01:00
2022-04-08 14:23:21 +02:00
2022-01-27 11:04:42 +01:00
2021-07-12 09:16:38 +02:00
2021-02-05 23:41:25 +01:00
2021-03-11 11:59:43 +01:00
2021-04-28 09:24:36 -07:00
2021-06-02 13:16:55 +02:00
2021-04-06 16:07:42 +02:00
2021-04-06 16:07:26 +02:00
2021-07-12 09:16:33 +02:00