From: Hans de Goede Date: Fri, 17 May 2013 08:07:25 +0000 (+0200) Subject: core: Fix handle_events return code on hotplug pipe read error X-Git-Tag: upstream/1.0.21~456 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa27f99772e9200d97518fe2aa7332e892949132;p=platform%2Fupstream%2Flibusb.git core: Fix handle_events return code on hotplug pipe read error Signed-off-by: Hans de Goede --- diff --git a/libusb/io.c b/libusb/io.c index aaf4b74..b8b31f7 100644 --- a/libusb/io.c +++ b/libusb/io.c @@ -1949,7 +1949,7 @@ static int handle_events(struct libusb_context *ctx, struct timeval *tv) if (ret < sizeof(message)) { usbi_err(ctx, "hotplug pipe read error %d < %d", ret, sizeof(message)); - ret = LIBUSB_ERROR_OTHER; + r = LIBUSB_ERROR_OTHER; goto handled; } diff --git a/libusb/version_nano.h b/libusb/version_nano.h index f40e9eb..fa29883 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10695 +#define LIBUSB_NANO 10696