Julia Lawall 1523508d63 drivers/pcmcia: add missing pci_dev_get
pci_get_slot does a pci_dev_get, so pci_dev_put needs to be called in an
error case.

An extract of the semantic match used to find the problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
type find1.T,T1,T2;
identifier find1.E;
statement find1.S;
expression x1,x2,x3;
expression find1.test;
int ret != 0;
@@

  T E;
  ...
(
* E = pci_get_slot(...);
  if (E == NULL) S
|
* if ((E = pci_get_slot(...)) == NULL)
  S
)
  ... when != pci_dev_put(...,(T1)E,...)
      when != if (E != NULL) { ... pci_dev_put(...,(T1)E,...); ...}
      when != x1 = (T1)E
      when != E = x3;
      when any
  if (test) {
    ... when != pci_dev_put(...,(T2)E,...)
        when != if (E != NULL) { ... pci_dev_put(...,(T2)E,...); ...}
        when != x2 = (T2)E
(
*   return;
|
*   return ret;
)
  }
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-05 09:44:09 -08:00
..
2008-02-03 17:06:17 +02:00
2008-02-03 17:08:11 +02:00
2008-02-03 16:29:12 +02:00
2008-02-03 17:12:34 +02:00
2008-02-03 15:42:53 +02:00
2008-01-30 13:14:02 -06:00
2008-02-03 17:15:20 +02:00
2008-02-03 17:16:28 +02:00
2008-02-04 23:50:03 +11:00
2008-02-03 17:18:59 +02:00
2008-02-03 17:21:01 +02:00
2008-02-03 17:22:34 +02:00
2008-02-03 17:23:36 +02:00
2008-02-03 17:24:37 +02:00
2008-02-03 15:42:53 +02:00
2008-02-02 15:08:04 -08:00
2008-01-31 11:25:51 +11:00
2008-02-03 15:42:53 +02:00
2008-02-03 17:30:25 +02:00
2008-01-24 20:40:43 -08:00
2008-02-03 17:31:49 +02:00
2008-02-04 23:50:13 +11:00