summaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2025-07-03 14:31:02 +0300
committerAndi Shyti <andi.shyti@kernel.org>2025-07-24 01:38:01 +0300
commita663b3c47ab10f66130818cf94eb59c971541c3f (patch)
treecde2e8c0dd8d8096bbd3fd2aab8ee45b1d3526c5 /lib/crypto/mpi/mpi-sub-ui.c
parent56344e241c543f17e8102fa13466ad5c3e7dc9ff (diff)
downloadlinux-a663b3c47ab10f66130818cf94eb59c971541c3f.tar.xz
i2c: virtio: Avoid hang by using interruptible completion wait
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
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions