Re: [PATCH] usb: host: ehci-atmel: stop clocks before releasing HCD
Greg Kroah-Hartman <[email protected]> Thu, 6 Aug 2026 08:16:04 +0200
| Newsgroups | org.kernel.vger.linux-usb,org.infradead.lists.linux-arm-kernel |
|---|---|
| Message-ID | <2026080623-flatworm-stagnate-82f2@gregkh> |
On Thu, Aug 06, 2026 at 02:05:57PM +0800, Hongyan Xu wrote:
> usb_put_hcd() drops the driver's HCD reference and can free the HCD and its
> private data. The remove callback then calls atmel_stop_ehci(), which
> obtains that HCD from platform data and dereferences its private data to
> disable the clocks.
>
> Stop the controller clocks before dropping the HCD reference so that
> atmel_stop_ehci() cannot access an already freed HCD.
>
> Fixes: 501c9c0802d9 ("USB: at91: Add USB EHCI driver for at91sam9g45 series")
> Signed-off-by: Hongyan Xu <[email protected]>
> ---
> drivers/usb/host/ehci-atmel.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
You just sent a bunch of obviously-llm-helped patches without properly
attributing that. Please resend new versions with the correct
information, AND correctly cc: the stable tree for when you have Fixes:
tags like this.
thanks,
greg k-h