Skip to content
Commit e36be795 authored by GwanYeong Kim's avatar GwanYeong Kim Committed by Greg Kroah-Hartman
Browse files

usbip: tools: Fix read_usb_vudc_device() error path handling

[ Upstream commit 28df0642

 ]

This isn't really accurate right. fread() doesn't always
return 0 in error. It could return < number of elements
and set errno.

Signed-off-by: default avatarGwanYeong Kim <gy741.kim@gmail.com>
Acked-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20191018032223.4644-1-gy741.kim@gmail.com
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent cd9561a5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment