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-17 08:42:52 -07:00
2007-08-22 19:52:46 -07:00
2007-11-02 08:47:06 +01:00
2007-11-19 11:20:42 +11:00
2007-07-21 18:37:12 -07:00
2007-10-29 17:27:50 -04:00
2007-10-16 09:43:09 -07:00
2007-10-19 11:53:42 -07:00
2007-11-05 21:54:41 +00:00
2007-11-14 18:45:39 -08:00
2007-11-05 15:12:31 -08:00
2007-10-20 01:34:40 +02:00
2007-11-27 09:19:40 +01:00
2007-10-23 09:49:31 +02:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-20 15:04:06 -07:00
2007-10-17 08:42:57 -07:00
2007-07-18 15:57:16 -07:00
2007-11-14 18:45:44 -08:00
2007-11-14 18:45:36 -08:00
2007-10-23 15:49:54 +10:00