xhci: fix placement of call to usb_disabled()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jan 2016 19:11:58 +0000 (11:11 -0800)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:11:19 +0000 (13:11 +0000)
commit7ca83cf5a56443cf7e72a024f46f7f3e91e0d87c
treec1d55d2cca05f69f23d7e0517c8b85533568ae2a
parent8b9e9abda34c71298f295749c1545be381ec8512
xhci: fix placement of call to usb_disabled()

In the backport of 1eaf35e4dd592c59041bc1ed3248c46326da1f5f, the call to
usb_disabled() was too late, after we had already done some allocation.
Move that call to the top of the function instead, making the logic
match what is intended and is in the original patch.

Reported-by: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c