linux/drivers/media/rc
Julia Lawall aeb35ebc5f [media] imon: Correct call to input_free_device
ictx->touch is intialied in imon_init_intf1, to the result of calling the
function that contains this code.  Thus, in this code, input_free_device
should be called on touch itself.

A simplified version of the semantic match that finds this problem is:
(http://coccinelle.lip6.fr/)

// <smpl>
@r exists@
local idexpression struct input_dev * x;
expression ra,rr;
position p1,p2;
@@

x = input_allocate_device@p1(...)
...  when != x = rr
    when != input_free_device(x,...)
    when != if (...) { ... input_free_device(x,...) ...}
if(...) { ... when != x = ra
    when forall
    when != input_free_device(x,...)
\(return <+...x...+>; \| return@p2...; \) }

@script:python@
p1 << r.p1;
p2 << r.p2;
@@

cocci.print_main("input_allocate_device",p1)
cocci.print_secs("input_free_device",p2)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-05-20 16:34:24 -03:00
..
keymaps [media] rc-winfast: fix inverted left/right key mappings 2011-05-20 15:58:50 -03:00
ene_ir.c Fix common misspellings 2011-03-31 11:26:23 -03:00
ene_ir.h [media] rc: fix up and genericize some time unit conversions 2011-01-19 11:45:52 -02:00
imon.c [media] imon: Correct call to input_free_device 2011-05-20 16:34:24 -03:00
ir-jvc-decoder.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ir-lirc-codec.c [media] rc/ir-lirc-codec: add back debug spew 2011-01-31 12:19:42 -02:00
ir-nec-decoder.c [media] rc: interim support for 32-bit NEC-ish scancodes 2011-03-22 19:24:23 -03:00
ir-raw.c Fix common misspellings 2011-03-31 11:26:23 -03:00
ir-rc5-decoder.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ir-rc5-sz-decoder.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ir-rc6-decoder.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ir-sony-decoder.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ite-cir.c [media] ite-cir: finish tx before suspending 2011-05-20 15:58:28 -03:00
ite-cir.h [media] ite-cir: Fix some CodingStyle issues 2011-03-22 17:20:12 -03:00
Kconfig [media] redrat3: new rc-core IR transceiver device driver 2011-05-20 16:25:00 -03:00
lirc_dev.c [media] media: rc: lirc_dev: check kobject_set_name() result 2010-12-29 08:16:58 -02:00
Makefile [media] redrat3: new rc-core IR transceiver device driver 2011-05-20 16:25:00 -03:00
mceusb.c [media] mceusb: passing ep to request_packet is redundant 2011-05-20 15:59:17 -03:00
nuvoton-cir.c [media] nuvoton-cir: minor tweaks to rc dev init 2011-05-20 15:54:16 -03:00
nuvoton-cir.h [media] rc/nuvoton-cir: enable CIR on w83667hg chip variant 2011-05-20 09:27:35 -03:00
rc-core-priv.h [media] rc-core: fix some leftovers from the renaming patches 2010-12-29 08:16:54 -02:00
rc-loopback.c [media] rc-core: add trailing silence in rc-loopback tx 2011-05-20 09:29:53 -03:00
rc-main.c [media] rc: add locking to fix register/show race 2011-05-20 16:21:22 -03:00
redrat3.c [media] redrat3: new rc-core IR transceiver device driver 2011-05-20 16:25:00 -03:00
streamzap.c [media] rc/streamzap: fix reporting response times 2011-01-31 12:22:13 -02:00
winbond-cir.c [media] rc-core: use ir_raw_event_store_with_filter in winbond-cir 2011-05-20 09:29:54 -03:00