WSL2-Linux-Kernel/drivers/usb/gadget/udc
Roy Luo 93e765523b USB: gadget: core: adjust uevent timing on gadget unbind
commit 73ea73affe8622bdf292de898da869d441da6a9d upstream.

The KOBJ_CHANGE uevent is sent before gadget unbind is actually
executed, resulting in inaccurate uevent emitted at incorrect timing
(the uevent would have USB_UDC_DRIVER variable set while it would
soon be removed).
Move the KOBJ_CHANGE uevent to the end of the unbind function so that
uevent is sent only after the change has been made.

Fixes: 2ccea03a8f ("usb: gadget: introduce UDC Class")
Cc: stable@vger.kernel.org
Signed-off-by: Roy Luo <royluo@google.com>
Link: https://lore.kernel.org/r/20231128221756.2591158-1-royluo@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-12-20 15:17:43 +01:00
..
aspeed-vhub
bdc
Kconfig
Makefile
amd5536udc.h
amd5536udc_pci.c usb: gadget: udc: fix NULL dereference in remove() 2023-06-28 10:29:51 +02:00
at91_udc.c
at91_udc.h
atmel_usba_udc.c
atmel_usba_udc.h
bcm63xx_udc.c USB: gadget: bcm63xx_udc: fix memory leak with using debugfs_lookup() 2023-03-11 13:57:36 +01:00
core.c USB: gadget: core: adjust uevent timing on gadget unbind 2023-12-20 15:17:43 +01:00
dummy_hcd.c
fotg210-udc.c fotg210-udc: Add missing completion handler 2023-03-10 09:39:39 +01:00
fotg210.h
fsl_qe_udc.c usb: gadget: fsl_qe_udc: validate endpoint index for ch9 udc 2023-09-23 11:09:59 +02:00
fsl_qe_udc.h
fsl_udc_core.c
fsl_usb2_udc.h
fusb300_udc.c
fusb300_udc.h
goku_udc.c
goku_udc.h
gr_udc.c USB: gadget: gr_udc: fix memory leak with using debugfs_lookup() 2023-03-11 13:57:36 +01:00
gr_udc.h
lpc32xx_udc.c USB: gadget: lpc32xx_udc: fix memory leak with using debugfs_lookup() 2023-03-11 13:57:36 +01:00
m66592-udc.c
m66592-udc.h
max3420_udc.c
mv_u3d.h
mv_u3d_core.c
mv_udc.h
mv_udc_core.c
net2272.c
net2272.h
net2280.c
net2280.h
omap_udc.c
omap_udc.h
pch_udc.c
pxa25x_udc.c USB: gadget: pxa25x_udc: fix memory leak with using debugfs_lookup() 2023-03-11 13:57:36 +01:00
pxa25x_udc.h
pxa27x_udc.c USB: gadget: pxa27x_udc: fix memory leak with using debugfs_lookup() 2023-03-11 13:57:36 +01:00
pxa27x_udc.h
r8a66597-udc.c
r8a66597-udc.h
renesas_usb3.c usb: gadget: udc: renesas_usb3: Fix use after free bug in renesas_usb3_remove due to race condition 2023-05-11 23:00:32 +09:00
s3c-hsudc.c
s3c2410_udc.c
s3c2410_udc.h
s3c2410_udc_regs.h
snps_udc_core.c
snps_udc_plat.c
tegra-xudc.c Revert "usb: gadget: tegra-xudc: Fix error check in tegra_xudc_powerdomain_init()" 2023-08-03 10:22:40 +02:00
trace.c
trace.h usb: gadget: Properly configure the device for remote wakeup 2023-05-30 13:55:29 +01:00
udc-xilinx.c usb: gadget: udc-xilinx: replace memcpy with memcpy_toio 2023-10-19 23:05:37 +02:00