]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: usbip: fix stub_dev hub disconnect
authorJonas Blixt <jonas.blixt@actia.se>
Thu, 15 Jun 2023 09:28:10 +0000 (11:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:08:26 +0000 (11:08 +0100)
commit72f8fa6c4b78c5631df963dc16e0e9b7d7f72928
tree33d7498b3566f9e1e30553b59ec9afb0167d538b
parent168697f15a5387ba3d46d6c06c0ed7428ae57e50
USB: usbip: fix stub_dev hub disconnect

[ 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: 6080cd0e9239 ("staging: usbip: claim ports used by shared devices")
Signed-off-by: Jonas Blixt <jonas.blixt@actia.se>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20230615092810.1215490-1-jonas.blixt@actia.se
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/usbip/stub_dev.c