Home
last modified time | relevance | path

Searched hist:"8 c7f5f5833815af06872bd6151604e0e18e24c99" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/input/keyboard/
H A Dpxa27x_keypad.cdiff 8c7f5f5833815af06872bd6151604e0e18e24c99 Thu May 23 18:30:04 CEST 2013 Lars-Peter Clausen <lars@metafoo.de> Input: pxa27x_keypad - pass correct pointer to free_irq()

free_irq() expects the same pointer that was passed to request_irq(),
otherwise the IRQ is not freed.

The issue was found using the following coccinelle script:

<smpl>
@r1@
type T;
T devid;
@@
request_irq(..., devid)

@r2@
type r1.T;
T devid;
position p;
@@
free_irq@p(..., devid)

@@
position p != r2.p;
@@
*free_irq@p(...)
</smpl>

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>