kernel_optimize_test/drivers/atm
Julia Lawall b9556f9a1a drivers/atm/atmtcp.c: add missing atm_dev_put
The earlier call to atm_dev_lookup increases the reference count of dev,
so decrease it on the way out.

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

// <smpl>
@@
expression x, E;
constant C;
@@

x = atm_dev_lookup(...);
... when != false x != NULL
    when != true x == NULL
    when != \(E = x\|x = E\)
    when != atm_dev_put(dev);
*return -C;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-12-31 12:52:05 -08:00
..
.gitignore
adummy.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
ambassador.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
ambassador.h
atmtcp.c drivers/atm/atmtcp.c: add missing atm_dev_put 2010-12-31 12:52:05 -08:00
eni.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
eni.h
firestream.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
firestream.h
fore200e.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
fore200e.h
he.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
he.h atm: [he] rewrite buffer handling in receive path 2010-05-31 00:27:47 -07:00
horizon.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
horizon.h
idt77105.c atm/idt77105.c: call atm_dev_signal_change() when signal changes. 2010-07-09 00:09:22 -07:00
idt77105.h
idt77252_tables.h
idt77252.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
idt77252.h
iphase.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
iphase.h ATM: iphase, remove sleep-inside-atomic 2010-10-11 11:05:42 -07:00
Kconfig Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
lanai.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
Makefile Drivers: atm: Makefile: replace the use of <module>-objs with <module>-y 2010-10-21 03:09:48 -07:00
midway.h
nicstar.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
nicstar.h atm: [nicstar] remove virt_to_bus() and support 64-bit platforms 2010-05-31 00:27:46 -07:00
nicstarmac.c atm: [nicstar] reformatted with Lindent 2010-05-31 00:27:46 -07:00
nicstarmac.copyright
solos-attrlist.c solos: Add 'Firmware' attribute for Traverse overall firmware version 2010-11-08 12:17:04 -08:00
solos-pci.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
suni.c atm/suni.c: call atm_dev_signal_change() when signal changes. 2010-07-09 00:09:23 -07:00
suni.h
tonga.h
uPD98401.h
uPD98402.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
uPD98402.h
zatm.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
zatm.h
zeprom.h