diff options
| author | Viresh Kumar <viresh.kumar@linaro.org> | 2025-07-03 17:01:02 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-01 09:51:26 +0100 |
| commit | 5240b1a2e0cba0201cb6b1cc8b0f11a530d13914 (patch) | |
| tree | 3ff5a7fbac649dc2c3526b0fd344cc8844c8f2f8 /include/net/aligned_data.h | |
| parent | 0355dbb0cb32430ef9dc6e79bb2cb4958af3cf50 (diff) | |
i2c: virtio: Avoid hang by using interruptible completion wait
commit a663b3c47ab10f66130818cf94eb59c971541c3f 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: 84e1d0bf1d71 ("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>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
