diff options
author | Lars-Peter Clausen | 2012-07-13 14:04:00 +0200 |
---|---|---|
committer | Jonathan Cameron | 2012-07-14 10:42:57 +0200 |
commit | 165d0c52fe87f8a95fcc01391432a659915bd332 (patch) | |
tree | c31131804c5e7b3a81020ef52b6d3dbcc1140402 /drivers/staging/iio/light/tsl2x7x_core.c | |
parent | staging:iio:tsl2x7x: Fix client data inconsistency (diff) | |
download | kernel-qcow2-linux-165d0c52fe87f8a95fcc01391432a659915bd332.tar.gz kernel-qcow2-linux-165d0c52fe87f8a95fcc01391432a659915bd332.tar.xz kernel-qcow2-linux-165d0c52fe87f8a95fcc01391432a659915bd332.zip |
staging:iio:lpc32xx_adc: Ensure request_irq and free_irq dev_id parameter match
The data parameters for request_irq and free_irq have to match, otherwise the
IRQ wont be freed.
The issue has been discovered using the following coccinelle patch:
// <smpl>
@r1@
type T;
T data;
@@
(
request_irq(..., (void *)data)
|
request_irq(..., data)
|
request_threaded_irq(..., (void *)data)
|
request_threaded_irq(..., data)
)
@r2@
type r1.T;
T data;
position p;
@@
(
free_irq@p(..., (void *)data)
|
free_irq@p(..., data)
)
@depends on r1@
position p != r2.p;
@@
*free_irq@p(...)
// </smpl>
Cc: Roland Stigge <stigge@antcom.de>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/light/tsl2x7x_core.c')
0 files changed, 0 insertions, 0 deletions