Double free on xhci_register failure.

Richard Habeeb richard.habeeb at
Tue Jul 18 22:57:06 CEST 2023

Hi all,

drivers/core/device.c will call `device_free()` after xhci_register already
frees the private device data. This causes a memory corruption and crash on
my RPI4B. I believe the solution is to remove the free call in
xhci_register (,

-Richard Habeeb

More information about the U-Boot mailing list