From: Sebastian Andrzej Siewior Date: Mon, 24 Oct 2011 09:09:39 +0000 (+0300) Subject: usb: dwc3: ep0: use proper endianess in SetFeature for wIndex X-Git-Tag: v3.3-rc1~153^2~25^2~18 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1e7618d8a1ad7aac6904c3a3915bf63f411344c2;p=linux-2.6-block.git usb: dwc3: ep0: use proper endianess in SetFeature for wIndex The first access was correct, the second was wrong. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 13c898b4cc1d..7760d00cb902 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -392,8 +392,7 @@ static int dwc3_ep0_handle_feature(struct dwc3 *dwc, case USB_RECIP_ENDPOINT: switch (wValue) { case USB_ENDPOINT_HALT: - - dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); + dep = dwc3_wIndex_to_dep(dwc, wIndex); if (!dep) return -EINVAL; ret = __dwc3_gadget_ep_set_halt(dep, set);