aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/usb/host/xhci-hub.c
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-02-14 20:47:33 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-17 10:39:11 +0100
commitdce174e01d864ebc51091f404f0b1df2504340a5 (patch)
tree17d4f1d0f0ba5788b28e52644d57535578bbbe7c /drivers/usb/host/xhci-hub.c
parentxhci: Do not open code __print_symbolic() in xhci trace events (diff)
downloadwireguard-linux-dce174e01d864ebc51091f404f0b1df2504340a5.tar.xz
wireguard-linux-dce174e01d864ebc51091f404f0b1df2504340a5.zip
xhci: Add missing annotation for xhci_set_port_power()
Sparse reports a warning at xhci_set_port_power() warning: context imbalance in xhci_set_port_power - unexpected unlock The root cause is the missing annotation at xhci_set_port_power() Add the missing __must_hold(&xhci->lock) annotattion Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Link: https://lore.kernel.org/r/20200214204741.94112-23-jbi.octave@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-hub.c')
-rw-r--r--drivers/usb/host/xhci-hub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c
index 7a3a29e5e9d2..57e3f2c5475a 100644
--- a/drivers/usb/host/xhci-hub.c
+++ b/drivers/usb/host/xhci-hub.c
@@ -558,6 +558,7 @@ struct xhci_hub *xhci_get_rhub(struct usb_hcd *hcd)
*/
static void xhci_set_port_power(struct xhci_hcd *xhci, struct usb_hcd *hcd,
u16 index, bool on, unsigned long *flags)
+ __must_hold(&xhci->lock)
{
struct xhci_hub *rhub;
struct xhci_port *port;