summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-27 05:33:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-28 08:57:17 +0300
commitaf40ab8d323eb1ffb4adc90e691aff8f0a419c04 (patch)
treeb4b7817e07fd0cc4966ec5d02238b9b96122b653 /drivers/usb/gadget/function
parentab7e6f96127ec1e6dd218441b914fa99891cea9c (diff)
downloadlinux-af40ab8d323eb1ffb4adc90e691aff8f0a419c04.tar.xz
usb: gadget: Fix OS descriptors support
commit 50b9773c13bffbef32060e67c4483ea7b2eca7b5 upstream. The current code is broken as it re-defines "req" inside the if block, then goto out of it. Thus the request that ends up being sent is not the one that was populated by the code in question. This fixes RNDIS driver autodetect by Windows 10 for me. The bug was introduced by Chris rework to remove the local queuing inside the if { } block of the redefined request. Fixes: 636ba13aec8a ("usb: gadget: composite: remove duplicated code in OS desc handling") Cc: <stable@vger.kernel.org> # v4.17 Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/function')
0 files changed, 0 insertions, 0 deletions