xhci: Add missing annotation for xhci_set_port_power()
authorJules Irenge <jbi.octave@gmail.com>
Fri, 14 Feb 2020 20:47:33 +0000 (20:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Feb 2020 09:39:11 +0000 (10:39 +0100)
commitdce174e01d864ebc51091f404f0b1df2504340a5
tree17d4f1d0f0ba5788b28e52644d57535578bbbe7c
parent16105850f7fcf91be28bc9958b9a502406a40926
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>
drivers/usb/host/xhci-hub.c