[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210629143251.GA699290@rowland.harvard.edu>
Date: Tue, 29 Jun 2021 10:32:51 -0400
From: Alan Stern <stern@...land.harvard.edu>
To: Linyu Yuan <linyyuan@...eaurora.org>
Cc: Felipe Balbi <balbi@...nel.org>,
Thinh Nguyen <Thinh.Nguyen@...opsys.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
Jack Pham <jackp@...eaurora.org>
Subject: Re: [PATCH v2] usb: dwc3: avoid NULL access of usb_gadget_driver
On Tue, Jun 29, 2021 at 09:51:18AM +0800, Linyu Yuan wrote:
> we found crash in dwc3_disconnect_gadget(),
> it is because dwc->gadget_driver become NULL before async access.
> 7dc0c55e9f30 ('USB: UDC core: Add udc_async_callbacks gadget op')
> suggest a common way to avoid such kind of issue.
>
> this change implment the callback in dwc3 and
> change related functions which have callback to usb gadget driver.
>
> Signed-off-by: Linyu Yuan <linyyuan@...eaurora.org>
> ---
>
> v2: add missing check in dwc3_reset_gadget(), found by Alan Stern.
This is better.
Acked-by: Alan Stern <stern@...land.harvard.edu>
Powered by blists - more mailing lists