]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: gadget: Add missing annotation for xudc_handle_setup()
authorJules Irenge <jbi.octave@gmail.com>
Wed, 29 Apr 2020 10:05:23 +0000 (11:05 +0100)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:40 +0000 (11:09 +0300)
commit66bd76e79e41eb79452e10d62f2099742a7feeb0
tree8e007ee45d0e349cd6451395beaece34aa49b945
parent46b11a91124d481ff4754ec624fc5393a515a361
usb: gadget: Add missing annotation for xudc_handle_setup()

Sparse reports a warning at xudc_handle_setup()

warning: context imbalance in xudc_handle_setup() - unexpected unlock

The root cause is the missing annotation at xudc_handle_setup()

Add the missing __must_hold(&udc->lock) annotation

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/udc-xilinx.c