Re: [PATCH v3] usbip: tools: Fix read_usb_vudc_device() error path handling

2019-10-21 Thread shuah
On 10/17/19 9:22 PM, GwanYeong Kim wrote: 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: GwanYeong Kim --- tools/usb/usbip/libsrc/usbip_device_driver.c | 6 -- 1 file changed, 4 insertions(+),

[PATCH v3] usbip: tools: Fix read_usb_vudc_device() error path handling

2019-10-17 Thread GwanYeong Kim
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: GwanYeong Kim --- tools/usb/usbip/libsrc/usbip_device_driver.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/usb/usbip/