diff options
| author | Felipe Balbi <[email protected]> | 2017-11-09 10:59:58 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-11-09 12:02:23 +0000 |
| commit | d656fa32b13424701bb85f6b5183ea869b363799 (patch) | |
| tree | 76cbfb42913ac32bf6d45c1d777c3e4d5b5f41c8 /lib/mpi/mpi-pow.c | |
| parent | USB: typec: Remove remaining redundant license text (diff) | |
| download | kernel-d656fa32b13424701bb85f6b5183ea869b363799.tar.gz kernel-d656fa32b13424701bb85f6b5183ea869b363799.zip | |
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 <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions
