linux/drivers/pnp
Julia Lawall 8ea50a3f0b drivers/pnp/resource.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>
Cc: Greg KH <greg@kroah.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-11-29 09:24:52 -08:00
..
isapnp [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00
pnpacpi PNP: increase the maximum number of resources 2007-11-29 09:24:52 -08:00
pnpbios PNP: simplify PNPBIOS insert_device 2007-10-17 08:43:04 -07:00
base.h
card.c PNP: use dev_info(), dev_err(), etc in core 2007-10-17 08:43:04 -07:00
core.c PNP: add debug message for adding new device 2007-10-17 08:43:04 -07:00
driver.c PNP: use dev_info(), dev_err(), etc in core 2007-10-17 08:43:04 -07:00
interface.c PNP: use dev_info(), dev_err(), etc in core 2007-10-17 08:43:04 -07:00
Kconfig Use menuconfig objects: PNP 2007-07-16 09:05:40 -07:00
Makefile PNP: use dev_info(), dev_err(), etc in core 2007-10-17 08:43:04 -07:00
manager.c PNP: use dev_info(), dev_err(), etc in core 2007-10-17 08:43:04 -07:00
quirks.c PNP: use dev_info(), dev_err(), etc in core 2007-10-17 08:43:04 -07:00
resource.c drivers/pnp/resource.c: Add missing pci_dev_put 2007-11-29 09:24:52 -08:00
support.c PNP: fix up after Lindent 2007-07-26 11:35:21 -07:00
system.c PNP: use dev_info() in system driver 2007-10-17 08:43:04 -07:00