]> git.baikalelectronics.ru Git - 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)
commit4641b653df504fa6c02db053bf71de203771d0da
tree8e007ee45d0e349cd6451395beaece34aa49b945
parent03478216088197e9cd3e8f6b78af13693c97c8ca
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