Searched hist:"1037246 cacd45d951227c8798f181b3ba5c8bcbe" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/uio/ |
H A D | uio_pci_generic.c | diff 1037246cacd45d951227c8798f181b3ba5c8bcbe Tue Aug 03 17:44:23 CEST 2010 Kulikov Vasiliy <segooon@gmail.com> uio: do not use PCI resources before pci_enable_device()
IRQ and resource[] may not have correct values until after PCI hotplug setup occurs at pci_enable_device() time.
The semantic match that finds this problem is as follows:
// <smpl> @@ identifier x; identifier request ~= "pci_request.*|pci_resource.*"; @@
( * x->irq | * x->resource | * request(x, ...) ) ... *pci_enable_device(x) // </smpl>
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Hans J. Koch <hjk@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|