mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 21:56:39 +07:00
[media] saa7164: free_irq before pci_disable_device
Free the IRQ before disabling the device. Otherwise errors like this when unloading the module: [21135.458560] ------------[ cut here ]------------ [21135.458569] WARNING: CPU: 4 PID: 1696 at /home/apw/COD/linux/fs/proc/generic.c:521 remove_proc_entry+0x1a1/0x1b0() [21135.458572] remove_proc_entry: removing non-empty directory 'irq/47', leaking at least 'saa7164[0]' Signed-off-by: Olli Salonen <olli.salonen@iki.fi> Reviewed-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
f35593fdc8
commit
3f845f3c4c
@ -1436,11 +1436,11 @@ static void saa7164_finidev(struct pci_dev *pci_dev)
|
||||
saa7164_i2c_unregister(&dev->i2c_bus[1]);
|
||||
saa7164_i2c_unregister(&dev->i2c_bus[2]);
|
||||
|
||||
pci_disable_device(pci_dev);
|
||||
|
||||
/* unregister stuff */
|
||||
free_irq(pci_dev->irq, dev);
|
||||
|
||||
pci_disable_device(pci_dev);
|
||||
|
||||
mutex_lock(&devlist);
|
||||
list_del(&dev->devlist);
|
||||
mutex_unlock(&devlist);
|
||||
|
Loading…
Reference in New Issue
Block a user