commit | d656fa32b13424701bb85f6b5183ea869b363799 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <felipe.balbi@linux.intel.com> | Thu Nov 09 12:59:58 2017 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Nov 09 13:02:23 2017 +0100 |
tree | 76cbfb42913ac32bf6d45c1d777c3e4d5b5f41c8 | |
parent | 0c3b34a569f83b281c4c0ef4542cf59d7b186a88 [diff] |
usb: core: message: remember to reset 'ret' to 0 when necessary usb_control_msg() will return the amount of bytes transferred, if that amount matches what we wanted to transfer, we need to reset 'ret' to 0 from usb_get_status(). Fixes: 2e43f0fe379c ("usb: core: add a 'type' parameter to usb_get_status()") Reported-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>