Richard Habeeb 3aba92c9dd usb: xhci: Fix double free on failure
drivers/core/device.c will call `device_free()` after xhci_register
already frees the private device data. This can cause a crash later
during the boot process, observed on aarch64 RPi4b as a synchronous
exception. All callers of xhci_register use priv_auto, so this won't
lead to memory leaks.

Signed-off-by: Richard Habeeb <richard.habeeb@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-07-27 03:59:38 +02:00
..
2022-06-28 17:03:30 -04:00
2023-02-07 14:33:50 -05:00
2023-05-13 09:52:32 -04:00
2022-06-28 17:03:31 -04:00
2023-01-27 14:47:58 -05:00
2023-01-27 14:47:58 -05:00
2023-07-27 03:59:38 +02:00