[PATCH] USB: mtu3: tracing: fix pointers dereferencing

Sebastian Andrzej Siewior bigeasy at linutronix.de
Thu Sep 3 07:14:03 PDT 2026


On 2026-08-04 12:05:30 [+0200], Marek Szyprowski wrote:
> Commit b5cc230af5e5 ("tracing: Warn when an event dereferences a pointer
> in TP_printk()") added a warning then printing an event dereferences
> a pointer, because it might be already freed that time.
> 
> MTU3 driver is one of the drivers triggering this warning. Fix it by
> storing also the DMA address in the event structure to avoid
> dereferencing gpd_ring pointer during event printing.
> 
> Fixes: 83374e035b62 ("usb: mtu3: add tracepoints to help debug")
> Signed-off-by: Marek Szyprowski <m.szyprowski at samsung.com>

Reviewed-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>

Just run into this, made the same fix :)

Sebastian



More information about the linux-arm-kernel mailing list