Commit acb3cd7a authored by Jonas Blixt's avatar Jonas Blixt Committed by Zheng Zengkai
Browse files

USB: usbip: fix stub_dev hub disconnect

stable inclusion
from stable-v6.6.2
commit 0976757a5a57a050018af8c7af84c317f96cffed
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8IW7G

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0976757a5a57a050018af8c7af84c317f96cffed



--------------------------------

[ Upstream commit 97475763484245916735a1aa9a3310a01d46b008 ]

If a hub is disconnected that has device(s) that's attached to the usbip layer
the disconnect function might fail because it tries to release the port
on an already disconnected hub.

Fixes: 6080cd0e ("staging: usbip: claim ports used by shared devices")
Signed-off-by: default avatarJonas Blixt <jonas.blixt@actia.se>
Acked-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20230615092810.1215490-1-jonas.blixt@actia.se


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent a4529fd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment