Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

misc/pvpanic-pci: register attributes via pci_driver

In __pci_register_driver(), the pci core overwrites the dev_groups field of
the embedded struct device_driver with the dev_groups from the outer
struct pci_driver unconditionally.

Set dev_groups in the pci_driver to make sure it is used.

This was broken since the introduction of pvpanic-pci.

Fixes: db3a4f0abefd ("misc/pvpanic: add PCI driver")
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Fixes: ded13b9cfd59 ("PCI: Add support for dev_groups to struct pci_driver")
Link: https://lore.kernel.org/r/20240411-pvpanic-pci-dev-groups-v1-1-db8cb69f1b09@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Thomas Weißschuh and committed by
Greg Kroah-Hartman
ee59be35 4108a30f

+1 -3
+1 -3
drivers/misc/pvpanic/pvpanic-pci.c
··· 44 44 .name = "pvpanic-pci", 45 45 .id_table = pvpanic_pci_id_tbl, 46 46 .probe = pvpanic_pci_probe, 47 - .driver = { 48 - .dev_groups = pvpanic_dev_groups, 49 - }, 47 + .dev_groups = pvpanic_dev_groups, 50 48 }; 51 49 module_pci_driver(pvpanic_pci_driver);