[PATCH 0/2] usb: gadget: Correct cleanup ordering on failure and removal

From: Guangshuo Li

Date: Wed Nov 18 2026 - 09:09:29 EST


Keep the FSL controller alive through removal and detach the Nokia
functions from their configuration before dropping their references.

Guangshuo Li (2):
usb: gadget: fsl_udc: Fix potential use-after-free during removal
usb: gadget: nokia: Fix potential use-after-free on bind failure

drivers/usb/gadget/legacy/nokia.c | 4 ++++
drivers/usb/gadget/udc/fsl_udc_core.c | 2 ++
2 files changed, 6 insertions(+)

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
--
2.43.0