summaryrefslogtreecommitdiff
path: root/drivers/usb/host/xhci-trace.c
diff options
context:
space:
mode:
authorEvgeny Novikov <novikov@ispras.ru>2020-08-05 12:06:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-18 11:55:23 +0200
commit531412492ce93ea29b9ca3b4eb5e3ed771f851dd (patch)
treefbe7f494f57496190c36c8fbd9f6767ffb4ba4bb /drivers/usb/host/xhci-trace.c
parentf4b9d8a582f738c24ebeabce5cc15f4b8159d74e (diff)
USB: lvtest: return proper error code in probe
lvs_rh_probe() can return some nonnegative value from usb_control_msg() when it is less than "USB_DT_HUB_NONVAR_SIZE + 2" that is considered as a failure. Make lvs_rh_probe() return -EINVAL in this case. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Evgeny Novikov <novikov@ispras.ru> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20200805090643.3432-1-novikov@ispras.ru Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-trace.c')
0 files changed, 0 insertions, 0 deletions