linux-yocto/drivers/i2c
Viresh Kumar 5b8d6cb9a0 i2c: virtio: Avoid hang by using interruptible completion wait
commit a663b3c47a upstream.

The current implementation uses wait_for_completion(), which can cause
the caller to hang indefinitely if the transfer never completes.

Switch to wait_for_completion_interruptible() so that the operation can
be interrupted by signals.

Fixes: 84e1d0bf1d ("i2c: virtio: disable timeout handling")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: <stable@vger.kernel.org> # v5.16+
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/b8944e9cab8eb959d888ae80add6f2a686159ba2.1751541962.git.viresh.kumar@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-01 09:48:43 +01:00
..
algos
busses i2c: virtio: Avoid hang by using interruptible completion wait 2025-08-01 09:48:43 +01:00
muxes i2c: mux: demux-pinctrl: check initial mux selection, too 2025-01-23 17:22:54 +01:00
i2c-atr.c i2c: atr: Fix wrong include 2025-04-25 10:47:51 +02:00
i2c-boardinfo.c
i2c-core-acpi.c i2c: Force ELAN06FA touchpad I2C bus freq to 100KHz 2025-02-17 10:04:52 +01:00
i2c-core-base.c i2c: core: fix reference leak in i2c_register_adapter() 2025-01-23 17:22:53 +01:00
i2c-core-of.c
i2c-core-slave.c i2c: simplify with scoped for each OF child loop 2024-09-03 12:01:52 +02:00
i2c-core-smbus.c
i2c-core.h
i2c-dev.c i2c: dev: Fix memory leak when underlying adapter does not support I2C 2024-12-05 14:01:58 +01:00
i2c-mux.c
i2c-slave-eeprom.c
i2c-slave-testunit.c i2c: testunit: on errors, repeat NACK until STOP 2025-01-23 17:22:54 +01:00
i2c-smbus.c i2c: smbus: Send alert notifications to all devices if source not found 2024-08-04 16:29:34 +02:00
i2c-stub.c
Kconfig i2c: Remove I2C_COMPAT config symbol and related code 2024-09-07 18:31:28 +02:00
Makefile