linux/drivers/usb/gadget
Badhri Jagan Sridharan 491d32c896 usb: gadget: udc: core: Prevent redundant calls to pullup
commit a3afbf5cc8 upstream.

usb_gadget_connect calls gadget->ops->pullup without checking whether
gadget->connected was previously set. Make this symmetric to
usb_gadget_disconnect by returning early if gadget->connected is
already set.

Fixes: 5a1da544e5 ("usb: gadget: core: do not try to disconnect gadget if it is not connected")
Cc: stable@vger.kernel.org
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Link: https://lore.kernel.org/r/20230407030741.3163220-2-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-11 23:02:59 +09:00
..
function usb: gadget: u_audio: don't let userspace block driver unbind 2023-03-30 12:49:22 +02:00
legacy
udc usb: gadget: udc: core: Prevent redundant calls to pullup 2023-05-11 23:02:59 +09:00
composite.c
config.c
configfs.c usb: gadget: configfs: Restrict symlink creation is UDC already binded 2023-03-10 09:33:35 +01:00
configfs.h
epautoconf.c
functions.c
Kconfig
Makefile
u_f.c
u_f.h
u_os_desc.h
usbstring.c