Skip to content

men-chameleon: Remove incorrect call to pci_dev_put() that causes a crash

The function pci_dev_put() was being called in combination with function pci_get_device(), however, according with the kernel documentation, the function pci_get_device() already calls to pci_dev_put() within so calling an extra time can cause a problem with the reference count.

Besides, as the patch proposed implements the function search_pci_devices() as non-recursive, we have removed all of its arguments as they are no longer required.

Closes #393

Closes #391

Edited by Jose Javier Rodriguez Barbarin

Merge request reports