]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: Validate the maximum_speed parameter
authorJohn Youn <John.Youn@synopsys.com>
Sat, 20 Feb 2016 01:31:01 +0000 (17:31 -0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:38 +0000 (15:14 +0200)
commitb53defad98d617fd00b87df7fc0959d2c294a3d2
tree139debb24a0669ad9d416b9f98ae3c5cf48c2d42
parent839fed45e2c233e3484672a7ea2afb5c227d5723
usb: dwc3: Validate the maximum_speed parameter

Check that dwc->maximum_speed is set to a valid value. Also add an error
when we use it later if we encounter an invalid value.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/gadget.c