android_kernel_xiaomi_sm8350/drivers/net/cxgb4vf
Kulikov Vasiliy 7a0c2029d6 cxgb4vf: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-04 16:18:02 -07:00
..
adapter.h
cxgb4vf_main.c cxgb4vf: do not use PCI resources before pci_enable_device() 2010-08-04 16:18:02 -07:00
Makefile
sge.c
t4vf_common.h
t4vf_defs.h
t4vf_hw.c