lkml.org 
[lkml]   [2023]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] usb: gadget: udc: do not clear gadget driver.bus
On Thu, Feb 02, 2023 at 12:01:25AM +0200, Aaro Koskinen wrote:
> Before the commit fc274c1e9973 ("USB: gadget: Add a new bus for gadgets")
> gadget driver.bus was unused. For whatever reason, many UDC drivers set
> this field explicitly to NULL in udc_start(). With the newly added gadget
> bus, doing this will crash the driver during the attach.
>
> The problem was first reported, fixed and tested with OMAP UDC and g_ether.
> Other drivers are changed based on code analysis only.
>
> Fixes: fc274c1e9973 ("USB: gadget: Add a new bus for gadgets")
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
> ---

Acked-by: Alan Stern <stern@rowland.harvard.edu>

\
 
 \ /
  Last update: 2023-03-27 00:06    [W:5.076 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site