Re: [PATCH] xhci_register: Fix double free on failure

2023-07-26 Thread Richard Habeeb
Thanks, my apologies. On Wed, Jul 26, 2023 at 10:01 PM Marek Vasut wrote: > On 7/24/23 21:45, Richard Habeeb wrote: > > drivers/core/device.c will call `device_free()` after xhci_register > > already frees the private device data. This can cause a crash later > > du

[PATCH] xhci_register: Fix double free on failure

2023-07-24 Thread Richard Habeeb
leaks. Signed-off-by: Richard Habeeb --- drivers/usb/host/xhci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 9e33c5d855..5cacf0769e 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -1418,7 +1418,6 @@ int xhci_reg

Double free on xhci_register failure.

2023-07-18 Thread Richard Habeeb
/host/xhci.c#L1421), thoughts? -Richard Habeeb