diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-08-03 11:44:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-31 14:13:57 -0400 |
commit | 13b631a599cddabc1cbb3a2fb862aee5ceb6e427 (patch) | |
tree | 7282d0acf5ea7cd0e37fbd669e5da61b87d66c8c /drivers/staging/vt6656/wpactl.c | |
parent | bd2bc4c763db8a9c6eeef0d2cf6f384514b6cb6c (diff) |
staging: vt6655: 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: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656/wpactl.c')
0 files changed, 0 insertions, 0 deletions