From: Julia Lawall <[EMAIL PROTECTED]>
pci_get_class implicitly does a pci_dev_put on its second argument, so
pci_dev_put is only needed if there is a break out of the loop.
The semantic match detecting this problem is as follows:
//
@@
expression dev;
expression E;
@@
* pci_dev_put(dev)
From: Julia Lawall [EMAIL PROTECTED]
pci_get_class implicitly does a pci_dev_put on its second argument, so
pci_dev_put is only needed if there is a break out of the loop.
The semantic match detecting this problem is as follows:
// smpl
@@
expression dev;
expression E;
@@
* pci_dev_put(dev)
2 matches
Mail list logo