Julia Lawall 0302899e14 drivers/ide/cy82c693.c: Add missing pci_dev_put
Pci_get_slot calls pci_dev_get, so pci_dev_put is needed before leaving the
function in the case where pci_get_slot is locally used.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
local idexpression x;
expression e;
@@

*x = pci_get_slot(...)
... when != true x == NULL
    when != pci_dev_put(x)
    when != e = x
    when != if (x != NULL) {<+... pci_dev_put(x); ...+>}
*return ...;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-08-04 01:30:34 -07:00
..
2009-05-17 19:12:25 +02:00
2010-10-26 10:17:29 -07:00
2011-08-04 01:29:51 -07:00
2009-05-17 19:12:25 +02:00
2010-11-22 11:37:21 -08:00
2011-03-10 08:52:07 +01:00
2011-06-11 15:06:48 -07:00
2011-03-09 19:54:27 +01:00
2009-09-01 17:52:57 -07:00
2009-03-27 12:46:34 +01:00
2009-05-17 19:12:25 +02:00
2009-05-17 19:12:25 +02:00
2009-04-08 14:13:03 +02:00
2009-05-17 19:12:25 +02:00
2011-03-10 08:52:07 +01:00
2009-05-17 19:12:25 +02:00
2011-03-31 11:26:23 -03:00
2010-01-19 11:30:09 -08:00
2011-03-17 14:05:34 +01:00
2009-04-08 14:13:03 +02:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00