]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usbip: usbip_host: fix to hold parent lock for device_attach() calls
authorShuah Khan <shuahkh@osg.samsung.com>
Thu, 5 Apr 2018 22:29:04 +0000 (16:29 -0600)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:37 +0000 (21:36 -0400)
commitdff14704cd1b0cc3b5ba1384c1b3101edd05f810
tree52ac0bf53dd814c75d93ec01c0edfc8b63770e68
parentcfc992934dea5d019a24edb2a79274727aa0de48
usbip: usbip_host: fix to hold parent lock for device_attach() calls

[ Upstream commit 4bfb141bc01312a817d36627cc47c93f801c216d ]

usbip_host calls device_attach() without holding dev->parent lock.
Fix it.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/usb/usbip/stub_main.c