From 5dd2b4ae58277dadcce4a9d00db6cec8e76e1750 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 10 Apr 2011 19:54:42 -0300 Subject: [PATCH] tools/lib/atusb.c (atusb_interrupt): if we have an error, report it immediately --- tools/lib/atusb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/atusb.c b/tools/lib/atusb.c index 510c848..e64316d 100644 --- a/tools/lib/atusb.c +++ b/tools/lib/atusb.c @@ -224,6 +224,7 @@ static int atusb_interrupt(void *dsc) if (res < 0) { fprintf(stderr, "ATUSB_POLL_INT: %d\n", res); error = 1; + return -1; } return buf;