USB: s3c_hsotg: define USB_GADGET_DUALSPEED in Kconfig
Subsystems (2)
PATCH 2/2 USB: s3c_hsotg: define USB_GADGET_DUALSPEED in Kconfig
The s3c_hsotg driver sets usb_gadget->is_dualspeed to 1, yet it doesn't define USB_GADGET_DUALSPEED in Kconfig. This triggers a NULL pointer dereference in the composite driver (which is fixed in another patch).
Signed-off-by Maurus Cuelenaere <[email protected]>
--- drivers/usb/gadget/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/usb/gadget/Kconfig +1 -0
@@ -295,6 +295,7 @@ config USB_GADGET_S3C_HSOTG boolean "S3C HS/OtG USB Device controller" depends on S3C_DEV_USB_HSOTG select USB_GADGET_S3C_HSOTG_PIO + select USB_GADGET_DUALSPEED help The Samsung S3C64XX USB2.0 high-speed gadget controller integrated into the S3C64XX series SoC.
Signature · 1 line
1.7.1
Op 17-05-10 21:12, Maurus Cuelenaere schreef:
Quoted 9 lines
The
s3c_hsotgdriver setsusb_gadget->is_dualspeedto 1, yet it doesn't defineUSB_GADGET_DUALSPEEDinKconfig. This triggers a NULL pointer dereference in the composite driver (which is fixed in another patch).Signed-off-by Maurus Cuelenaere <[email protected]>--- drivers/usb/gadget/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
I'm unsure whether I should be the one stating this, but Ben acked this patch:
Acked-by Ben Dooks <[email protected]>
Signature · 1 line
Maurus Cuelenaere