diff options
author | Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com> | 2024-06-28 17:25:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-18 11:39:36 +0200 |
commit | a349e5ab4dc9954746e836cd10b407ce48f9b2f6 (patch) | |
tree | 61a886020d3ebb05b215a3842a7ac4033e4829c3 /scripts/gcc-plugins/structleak_plugin.c | |
parent | 39fb2a0c2e78d9b2de726be119e6d06e38aa4ed4 (diff) |
i2c: pnx: Fix potential deadlock warning from del_timer_sync() call in isr
[ Upstream commit f63b94be6942ba82c55343e196bd09b53227618e ]
When del_timer_sync() is called in an interrupt context it throws a warning
because of potential deadlock. The timer is used only to exit from
wait_for_completion() after a timeout so replacing the call with
wait_for_completion_timeout() allows to remove the problematic timer and
its related functions altogether.
Fixes: 41561f28e76a ("i2c: New Philips PNX bus driver")
Signed-off-by: Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions