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)
commit77966eb85e6d988a6daaf8ac14ac33026ceb3ab7
tree139debb24a0669ad9d416b9f98ae3c5cf48c2d42
parent5266a7603faa036f6707623ba76f054349050c85
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
This page took 0.025871 seconds and 5 git commands to generate.