Jiang Liu
f85567c89e
PCI/vga: Use hotplug-safe pci_get_domain_bus_and_slot()
...
Following code has a race window between pci_find_bus() and pci_get_slot()
if PCI hotplug operation happens between them which removes the pci_bus.
So use PCI hotplug safe interface pci_get_domain_bus_and_slot() instead,
which also reduces code complexity.
struct pci_bus *pci_bus = pci_find_bus(domain, busno);
struct pci_dev *pci_dev = pci_get_slot(pci_bus, devfn);
Signed-off-by: Jiang Liu <jiang.liu@huawei.com >
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com >
2012-09-12 14:13:11 -06:00
..
2012-07-30 11:54:53 -07:00
2012-07-27 15:14:26 -07:00
2012-08-02 11:50:24 -07:00
2012-08-01 10:26:23 -07:00
2012-07-27 11:15:03 -04:00
2012-08-01 09:06:47 -07:00
2012-07-31 19:07:42 -07:00
2012-07-30 17:25:13 -07:00
2012-07-23 16:31:31 -07:00
2012-07-30 09:45:53 -07:00
2012-07-26 14:28:55 -07:00
2012-07-31 19:07:42 -07:00
2012-08-02 11:45:42 -07:00
2012-07-29 21:11:05 -03:00
2012-07-30 12:41:17 -07:00
2012-07-30 09:32:39 -07:00
2012-07-31 19:07:42 -07:00
2012-07-30 12:41:17 -07:00
2012-09-12 14:13:11 -06:00
2012-07-31 18:47:44 -07:00
2012-07-31 19:07:42 -07:00
2012-07-30 10:10:26 -07:00
2012-07-31 19:07:42 -07:00
2012-07-26 14:28:55 -07:00
2012-07-30 07:47:27 -07:00
2012-07-31 19:07:42 -07:00
2012-07-24 16:24:11 -07:00
2012-07-29 23:18:30 -07:00
2012-07-27 08:16:07 +08:00
2012-08-02 11:34:40 -07:00
2012-07-31 18:47:44 -07:00
2012-07-30 17:25:17 -07:00
2012-07-31 19:07:42 -07:00
2012-07-30 17:25:34 -07:00
2012-08-01 16:41:07 -07:00
2012-08-01 16:41:07 -07:00
2012-08-02 11:52:39 -07:00
2012-07-24 14:07:22 -07:00
2012-07-24 16:17:07 -07:00
2012-07-24 16:17:07 -07:00
2012-07-27 15:14:26 -07:00
2012-07-24 14:05:46 -07:00
2012-07-31 23:27:31 -04:00
2012-08-02 11:52:39 -07:00
2012-07-30 17:25:21 -07:00
2012-07-26 07:45:20 +02:00
2012-07-31 00:51:09 +02:00
2012-07-26 16:19:08 -07:00
2012-07-26 16:19:08 -07:00
2012-07-31 19:25:39 -07:00
2012-07-26 18:09:01 -07:00
2012-08-01 09:02:41 -07:00
2012-08-01 17:14:52 +09:00
2012-08-01 16:41:07 -07:00
2012-08-02 11:52:39 -07:00
2012-08-01 10:26:23 -07:00
2012-07-31 18:08:25 -07:00
2012-08-01 13:48:54 +09:00
2012-08-01 10:26:23 -07:00
2012-07-31 08:16:24 -06:00
2012-07-22 01:22:23 +03:00
2012-08-01 10:45:12 -07:00
2012-07-26 11:25:33 -07:00
2012-08-02 11:50:24 -07:00
2012-07-24 16:17:07 -07:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00