OrangePi_CM5/drivers/usb
Dan Carpenter d8da6328ec usb: gadget: hid: fix error code in do_config()
[ Upstream commit 68e7c510fdf4f6167404609da52e1979165649f6 ]

Return an error code if usb_get_function() fails.  Don't return success.

Fixes: 4bc8a33f24 ("usb: gadget: hid: convert to new interface of f_hid")
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211011123739.GC15188@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 14:04:17 +01:00
..
atm
…
c67x00
…
cdns3 usb: cdns3: fix race condition before setting doorbell 2021-10-06 15:55:46 +02:00
chipidea USB: chipidea: fix interrupt deadlock 2021-11-18 14:03:52 +01:00
class USB: cdc-acm: fix break reporting 2021-10-13 10:04:23 +02:00
common Partially revert "usb: Kconfig: using select for USB_COMMON dependency" 2021-10-13 10:04:22 +02:00
core Revert "usb: core: hcd: Add support for deferring roothub registration" 2021-11-06 14:10:09 +01:00
dwc2 usb: dwc2: check return value after calling platform_get_resource() 2021-10-09 14:40:56 +02:00
dwc3 usb: dwc3: core: balance phy init and exit 2021-09-30 10:11:00 +02:00
early
…
gadget usb: gadget: hid: fix error code in do_config() 2021-11-18 14:04:17 +01:00
host usb: xhci: Enable runtime-pm by default on AMD Yellow Carp platform 2021-11-18 14:03:36 +01:00
image
…
isp1760
…
misc USB: iowarrior: fix control-message timeouts 2021-11-18 14:03:51 +01:00
mon
…
mtu3 usb: mtu3: fix the wrong HS mult value 2021-09-12 08:58:28 +02:00
musb usb: musb: Balance list entry in musb_gadget_queue 2021-11-12 14:58:32 +01:00
phy usb: phy: tahvo: add IRQ check 2021-09-15 09:50:40 +02:00
renesas_usbhs usb: renesas_usbhs: Fix superfluous irqs happen after usb_pkt_pop() 2021-07-28 14:35:44 +02:00
roles
…
serial USB: serial: keyspan: fix memleak on probe errors 2021-11-18 14:03:51 +01:00
storage usb-storage: Add compatibility quirk flags for iODD 2531/2541 2021-11-12 14:58:32 +01:00
typec usb: typec: tcpm: handle SRC_STARTUP state if cc changes 2021-10-13 10:04:23 +02:00
usbip usbip:vhci_hcd USB port can get stuck in the disabled state 2021-09-18 13:40:33 +02:00
Kconfig
…
Makefile
…
usb-skeleton.c
…