diff options
author | Dave Airlie <airlied@redhat.com> | 2014-11-04 11:26:16 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-11-04 11:26:16 +1000 |
commit | 0228dd12c49f3335f008443fbcb61c7d3f8df3ac (patch) | |
tree | b2c75a518a1b129a11f4eda95a142dae2bc8e9ba | |
parent | 711ee1baeb051cb6556f9a5d13cea541983de91e (diff) |
finish if L fails to match
-rw-r--r-- | dl3.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |