linux-sg2042/drivers/pcmcia
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
..
Kconfig pcmcia: CompactFlash driver for PA Semi Electra boards 2007-10-17 08:42:48 -07:00
Makefile pcmcia: CompactFlash driver for PA Semi Electra boards 2007-10-17 08:42:48 -07:00
at91_cf.c at91_cf: use generic gpio calls 2008-02-05 09:44:09 -08:00
au1000_db1x00.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial 2006-06-30 15:39:30 -07:00
au1000_generic.c [PATCH] Fix struct device member name in PCMCIA au1000_generic 2007-03-27 09:05:16 -07:00
au1000_generic.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
au1000_pb1x00.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
au1000_xxs1500.c move a few definitions to au1000_xxs1500.c 2007-10-16 09:42:50 -07:00
cardbus.c drivers/pcmcia: add missing pci_dev_get 2008-02-05 09:44:09 -08:00
cirrus.h
cistpl.c pcmcia: cistpl: use get_unaligned() in CIS parsing 2007-10-16 09:42:50 -07:00
cs.c pcmcia: fix kernel-doc comments 2007-12-10 19:43:54 -08:00
cs_internal.h Driver core: convert pcmcia code to use struct device 2007-02-07 10:37:11 -08:00
ds.c pcmcia: include bad CIS filename in error message 2008-02-05 09:44:08 -08:00
ds_internal.h [PATCH] pcmcia: remove export of pcmcia_release_configuration 2006-03-31 17:15:53 +02:00
electra_cf.c pcmcia: CompactFlash driver for PA Semi Electra boards 2007-10-17 08:42:48 -07:00
hd64465_ss.c Driver core: more fallout from class_device changes for pcmcia 2007-02-23 14:52:09 -08:00
i82092.c pcmcia: replace kio_addr_t with unsigned int everywhere 2008-02-05 09:44:08 -08:00
i82092aa.h IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
i82365.c pcmcia: replace kio_addr_t with unsigned int everywhere 2008-02-05 09:44:08 -08:00
i82365.h
m8xx_pcmcia.c drivers/pcmcia: Add missing iounmap 2008-02-05 09:44:09 -08:00
m32r_cfc.c pcmcia: replace kio_addr_t with unsigned int everywhere 2008-02-05 09:44:08 -08:00
m32r_cfc.h
m32r_pcc.c pcmcia: replace kio_addr_t with unsigned int everywhere 2008-02-05 09:44:08 -08:00
m32r_pcc.h
o2micro.h
omap_cf.c [PATCH] omap_cf: oops-on-suspend fix 2007-04-08 19:47:55 -07:00
pcmcia_ioctl.c [PATCH] mark struct file_operations const 5 2007-02-12 09:48:45 -08:00
pcmcia_resource.c pcmcia: convert some internal-only ioaddr_t to unsigned int 2008-02-05 09:44:08 -08:00
pd6729.c signedness: module_param_array nump argument 2007-10-14 12:41:52 -07:00
pd6729.h
pxa2xx_base.c [ARM] pxa: move memory controller registers into pxa2xx-regs.h 2008-01-26 15:07:54 +00:00
pxa2xx_base.h [ARM] Fix suspend oops caused by PXA2xx PCMCIA driver 2006-10-28 22:42:56 +01:00
pxa2xx_cm_x270.c [ARM] 4578/1: CM-x270: PCMCIA support 2007-10-15 18:54:02 +01:00
pxa2xx_lubbock.c pcmcia: remove pxa2xx_lubbock build warning 2007-12-23 12:54:37 -08:00
pxa2xx_mainstone.c Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 2007-10-15 16:08:50 -07:00
pxa2xx_sharpsl.c platform: prefix MODALIAS with "platform:" 2007-10-12 14:50:59 -07:00
ricoh.h
rsrc_mgr.c Driver core: more fallout from class_device changes for pcmcia 2007-02-23 14:52:09 -08:00
rsrc_nonstatic.c pcmcia: replace kio_addr_t with unsigned int everywhere 2008-02-05 09:44:08 -08:00
sa11xx_base.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
sa11xx_base.h
sa1100_assabet.c
sa1100_badge4.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
sa1100_cerf.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
sa1100_generic.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
sa1100_generic.h
sa1100_h3600.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
sa1100_jornada720.c [ARM] 4810/1: - Fix 'section mismatch' building warnings 2008-02-04 13:14:07 +00:00
sa1100_neponset.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
sa1100_shannon.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
sa1100_simpad.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
sa1111_generic.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
sa1111_generic.h
soc_common.c pcmcia: some class_device fallout 2007-02-16 15:19:18 -08:00
soc_common.h
socket_sysfs.c sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes 2007-07-11 16:09:09 -07:00
tcic.c pcmcia: replace kio_addr_t with unsigned int everywhere 2008-02-05 09:44:08 -08:00
tcic.h
ti113x.h pcmcia: fix kernel-doc comments 2007-12-10 19:43:54 -08:00
topic.h
vg468.h
vrc4171_card.c Driver core: more fallout from class_device changes for pcmcia 2007-02-23 14:52:09 -08:00
vrc4173_cardu.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
vrc4173_cardu.h Update Yoichi Yuasa's email address. 2006-01-10 13:39:07 +00:00
yenta_socket.c pcmcia: fix kernel-doc comments 2007-12-10 19:43:54 -08:00
yenta_socket.h