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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 May 2018 19:58:08 +0000 (12:58 -0700)
commit944edaf13deeb0db5847bddf956c4316e53d6f2c
tree48883d8625dd5882afbf09f9ddf1991f03b1ca0e
parent470bf16ae1ab7172133fe3c6b4506a75f86d314f
usbip: usbip_host: fix to hold parent lock for device_attach() calls

commit 4bfb141bc01312a817d36627cc47c93f801c216d upstream.

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>
drivers/usb/usbip/stub_main.c