]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
memstick: Add timeout to prevent indefinite waiting
authorJiayi Li <lijiayi@kylinos.cn>
Mon, 4 Aug 2025 02:48:25 +0000 (10:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2025 11:45:06 +0000 (12:45 +0100)
commit0e2e0078da1b874e261c2188d190508f265289bf
tree911b5f4213d8cf80ed4839a3f9b610f58a0d5cb7
parenta83b52e6939351d8850b6f74370361cde8677ff1
memstick: Add timeout to prevent indefinite waiting

[ Upstream commit b65e630a55a490a0269ab1e4a282af975848064c ]

Add timeout handling to wait_for_completion calls in memstick_set_rw_addr()
and memstick_alloc_card() to prevent indefinite blocking in case of
hardware or communication failures.

Signed-off-by: Jiayi Li <lijiayi@kylinos.cn>
Link: https://lore.kernel.org/r/20250804024825.1565078-1-lijiayi@kylinos.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/memstick/core/memstick.c