mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 05:33:09 +00:00
aeb35ebc5f
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> |
||
---|---|---|
.. | ||
keymaps | ||
ene_ir.c | ||
ene_ir.h | ||
imon.c | ||
ir-jvc-decoder.c | ||
ir-lirc-codec.c | ||
ir-nec-decoder.c | ||
ir-raw.c | ||
ir-rc5-decoder.c | ||
ir-rc5-sz-decoder.c | ||
ir-rc6-decoder.c | ||
ir-sony-decoder.c | ||
ite-cir.c | ||
ite-cir.h | ||
Kconfig | ||
lirc_dev.c | ||
Makefile | ||
mceusb.c | ||
nuvoton-cir.c | ||
nuvoton-cir.h | ||
rc-core-priv.h | ||
rc-loopback.c | ||
rc-main.c | ||
redrat3.c | ||
streamzap.c | ||
winbond-cir.c |