[PATCH] usb: host: ehci-atmel: stop clocks before releasing HCD

Greg Kroah-Hartman gregkh at linuxfoundation.org
Wed Aug 5 23:16:04 PDT 2026


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 <getshell at seu.edu.cn>
> ---
>  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



More information about the linux-arm-kernel mailing list