summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-11-04 11:26:16 +1000
committerDave Airlie <airlied@redhat.com>2014-11-04 11:26:16 +1000
commit0228dd12c49f3335f008443fbcb61c7d3f8df3ac (patch)
treeb2c75a518a1b129a11f4eda95a142dae2bc8e9ba
parent711ee1baeb051cb6556f9a5d13cea541983de91e (diff)
finish if L fails to match
-rw-r--r--dl3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dl3.c b/dl3.c
index 17978dd..6399442 100644
--- a/dl3.c
+++ b/dl3.c
@@ -521,6 +521,9 @@ static int send_buffer(libusb_device_handle *handle, int endpoint_out, int endpo
decode_rx(&info, buf, size);
/* find L' */
} while (1);
+
+ if (!info.l_matches)
+ return -1;
return 0;
}