]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Print a debug message on PCI device release
authorNiklas Schnelle <schnelle@linux.ibm.com>
Thu, 11 Mar 2021 13:23:12 +0000 (14:23 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 27 May 2021 23:57:52 +0000 (18:57 -0500)
commit910480639dce6529998adbc565d7adf7e2decc2f
tree8ab647ca570b773b989341924c885eaff9950f2f
parent9fb51bb203ba1c67f480638e9d0605db59810687
PCI: Print a debug message on PCI device release

Commit c4f5f331b929 ("PCI: enhance physical slot debug information") added
a debug print on releasing the PCI slot and another message on destroying
it. There is however no debug print on releasing the PCI device structure
itself and even with closely looking at the kernel log during hotplug
testing, I overlooked several missing pci_dev_put() calls for way too long.

Add a debug print in pci_release_dev() making it much easier to spot when
the PCI device structure is not released when it is supposed to be.

Link: https://lore.kernel.org/r/20210311132312.2882425-1-schnelle@linux.ibm.com
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c