aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorfrank zago <[email protected]>2021-04-26 21:20:17 -0500
committerJonathan Cameron <[email protected]>2021-06-16 14:57:03 +0100
commit7cd04c863f9e1655d607705455e7714f24451984 (patch)
treef9fd9742c3a489a1f16c95273aa276353f01623f /tools/perf/scripts/python
parente2a73c4e78fc42ca65cc65abb66d527469bb3a4c (diff)
iio: light: tcs3472: do not free unallocated IRQ
Allocating an IRQ is conditional to the IRQ existence, but freeing it was not. If no IRQ was allocate, the driver would still try to free IRQ 0. Add the missing checks. This fixes the following trace when the driver is removed: [ 100.667788] Trying to free already-free IRQ 0 [ 100.667793] WARNING: CPU: 0 PID: 2315 at kernel/irq/manage.c:1826 free_irq+0x1fd/0x370 ... [ 100.667914] Call Trace: [ 100.667920] tcs3472_remove+0x3a/0x90 [tcs3472] [ 100.667927] i2c_device_remove+0x2b/0xa0 Signed-off-by: frank zago <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: 9d2f715d592e ("iio: light: tcs3472: support out-of-threshold events") Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions