This is an automated email from Gerrit.

Peter Horn ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/862

-- gerrit

commit 615ee9d6297d328e636920e7b7fb0e9c335f68f3
Author: Peter Horn <[email protected]>
Date:   Sat Sep 29 18:16:46 2012 +0200

    Fix: Error while reading from USB endpoint
    
    This patch fixes the bug reported here:
    
    http://sourceforge.net/mailarchive/message.php?msg_id=28350157
    
    
    When using Rlink under Linux, openocd exits with:
    
    "Error: Read of endpoint 2 returned -75, expected 17"
    
    The return value of -75 translates into EOVERFLOW. The cause is a wrong 
output buffer size argument passed to dtc_run_download().
    
    Change-Id: I5d056705181ab6a6d4355524df06a0ea9c605961
    Signed-off-by: Peter Horn <[email protected]>

diff --git a/src/jtag/drivers/rlink.c b/src/jtag/drivers/rlink.c
index c5c2701..8a8c8c1 100644
--- a/src/jtag/drivers/rlink.c
+++ b/src/jtag/drivers/rlink.c
@@ -642,7 +642,7 @@ static int dtc_queue_run(void)
 
        usb_err = dtc_run_download(pHDev,
                        dtc_queue.cmd_buffer, dtc_queue.cmd_index,
-                       reply_buffer, dtc_queue.reply_index
+                       reply_buffer, sizeof(reply_buffer)
                        );
        if (usb_err < 0) {
                LOG_ERROR("dtc_run_download: %s", usb_strerror());

-- 

------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to