kernel_samsung_a53x/drivers/usb/gadget
Chris Wulff 6d96da5543 usb: gadget: u_audio: Clear uac pointer when freed.
[ Upstream commit a2cf936ebef291ef7395172b9e2f624779fb6dc0 ]

This prevents use of a stale pointer if functions are called after
g_cleanup that shouldn't be. This doesn't fix any races, but converts
a possibly silent kernel memory corruption into an obvious NULL pointer
dereference report.

Fixes: eb9fecb9e69b ("usb: gadget: f_uac2: split out audio core")
Signed-off-by: Chris Wulff <chris.wulff@biamp.com>
Link: https://lore.kernel.org/stable/CO1PR17MB54194226DA08BFC9EBD8C163E1172%40CO1PR17MB5419.namprd17.prod.outlook.com
Link: https://lore.kernel.org/r/CO1PR17MB54194226DA08BFC9EBD8C163E1172@CO1PR17MB5419.namprd17.prod.outlook.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:27:04 +01:00
..
function usb: gadget: u_audio: Clear uac pointer when freed. 2024-11-19 12:27:04 +01:00
legacy usb: raw-gadget: properly handle interrupted requests 2024-11-18 10:58:48 +01:00
udc usb: udc: remove warning when queue disabled ep 2024-11-19 09:22:43 +01:00
composite.c usb: gadget: composite: fix OS descriptors w_value logic 2024-11-19 11:32:48 +01:00
config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
configfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
configfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
epautoconf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
functions.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
u_f.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
u_f.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
u_os_desc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usbstring.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00