|
@@ -28,7 +28,7 @@ SYSCALL_DEFINE5(pciconfig_read, unsigned long, bus, unsigned long, dfn,
|
|
|
return -EPERM;
|
|
|
|
|
|
err = -ENODEV;
|
|
|
- dev = pci_get_bus_and_slot(bus, dfn);
|
|
|
+ dev = pci_get_domain_bus_and_slot(0, bus, dfn);
|
|
|
if (!dev)
|
|
|
goto error;
|
|
|
|
|
@@ -96,7 +96,7 @@ SYSCALL_DEFINE5(pciconfig_write, unsigned long, bus, unsigned long, dfn,
|
|
|
if (!capable(CAP_SYS_ADMIN))
|
|
|
return -EPERM;
|
|
|
|
|
|
- dev = pci_get_bus_and_slot(bus, dfn);
|
|
|
+ dev = pci_get_domain_bus_and_slot(0, bus, dfn);
|
|
|
if (!dev)
|
|
|
return -ENODEV;
|
|
|
|