]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "PCI: Remove struct pci_dev->driver"
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 10 Nov 2021 18:01:14 +0000 (12:01 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 11 Nov 2021 19:36:14 +0000 (13:36 -0600)
commitd7e00a401d2162e9eb3a3741f45398ce8973a34b
tree72889ae31cb78d297553aa05af627e1430305d2a
parent6d72bd5c323f4e7e4bc82a2b00badeb851a9d74d
Revert "PCI: Remove struct pci_dev->driver"

This reverts commit 73eaf9edca5506842ee8bbe9d857a76d3519c922.

Revert 73eaf9edca55 ("PCI: Remove struct pci_dev->driver"), which is needed
to revert eed08cea8988 ("PCI: Use to_pci_driver() instead of
pci_dev->driver").

eed08cea8988 caused a NULL pointer dereference reported by Robert Święcki.
Details in the revert of that commit.

Fixes: eed08cea8988 ("PCI: Use to_pci_driver() instead of pci_dev->driver")
Link: https://lore.kernel.org/linux-i2c/CAP145pgdrdiMAT7=-iB1DMgA7t_bMqTcJL4N0=6u8kNY3EU0dw@mail.gmail.com/
Reported-by: Robert Święcki <robert@swiecki.net>
Tested-by: Robert Święcki <robert@swiecki.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-driver.c
include/linux/pci.h