linux-hardened/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: Add main T4 PCI-E SR-IOV Virtual Function driver for cxgb4vf 2010-06-28 23:59:36 -07:00
cxgb4vf_main.c cxgb4vf: do not use PCI resources before pci_enable_device() 2010-08-04 16:18:02 -07:00
Makefile cxgb4vf: Add new Makefile for T4 PCI-E SR-IOV Virtual Function driver cxgb4vf 2010-06-28 23:59:37 -07:00
sge.c cxgb4vf: fix SGE resource resource deallocation bug 2010-07-15 22:47:06 -07:00
t4vf_common.h cxgb4vf: Add core T4 PCI-E SR-IOV Virtual Function hardware definitions and device communication code 2010-06-28 23:59:35 -07:00
t4vf_defs.h cxgb4vf: Add core T4 PCI-E SR-IOV Virtual Function hardware definitions and device communication code 2010-06-28 23:59:35 -07:00
t4vf_hw.c cxgb4vf: Fix off-by-one error checking for the end of the mailbox delay array 2010-07-20 12:42:42 -07:00