Files
linux/drivers/pci
Julia Lawall 151fc5dfc8 PCI: drivers/pci/pci-sysfs.c: Add missing pci_dev_put
There should be a pci_dev_put when breaking out of a loop that iterates
over calls to pci_get_device and similar functions.

This was fixed using the following semantic patch.

// <smpl>
@@
identifier d;
type T;
expression e;
iterator for_each_pci_dev;
@@

T *d;
...
for_each_pci_dev(d)
  {... when != pci_dev_put(d)
       when != e = d
(
   return d;
|
+  pci_dev_put(d);
?  return ...;
)
...}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-11-28 14:35:26 -08:00
..
…
…
2007-10-30 08:06:55 -07:00
2007-10-29 07:41:32 -07:00
2007-10-22 08:13:18 -07:00
…
2007-07-29 16:53:59 -07:00
2007-10-14 12:41:52 -07:00
2007-10-22 08:13:18 -07:00
2007-11-05 13:35:17 -08:00
…