diff options
author | Julia Lawall <julia@diku.dk> | 2007-11-29 00:21:36 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-29 17:24:52 (GMT) |
commit | 8ea50a3f0b70977939d2d9d3671b8173482afff2 (patch) | |
tree | a4ee35119da225174d672618aecf4a507d6cbd5d /drivers/mfd/sm501.c | |
parent | b64d70825abbf706bbe80be1b11b09514b71f45e (diff) | |
download | linux-fsl-qoriq-8ea50a3f0b70977939d2d9d3671b8173482afff2.tar.xz |
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>
Diffstat (limited to 'drivers/mfd/sm501.c')
0 files changed, 0 insertions, 0 deletions