Fix: Error while reading from USB endpoint
commit1ab99c3fe58bc7ecb74df7e4ef4b9de485671874
authorPeter Horn <peter.horn@bluewin.ch>
Sat, 29 Sep 2012 16:16:46 +0000 (29 18:16 +0200)
committerPeter Stuge <peter@stuge.se>
Sat, 29 Sep 2012 17:08:52 +0000 (29 17:08 +0000)
treed2db50e48a2167d76bd1dd24bad101ef9fb2e20a
parent0b118583f70c0169d4aa3b3fc83393cb007c60cd
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 <peter.horn@bluewin.ch>
Reviewed-on: http://openocd.zylin.com/862
Tested-by: jenkins
Reviewed-by: Peter Stuge <peter@stuge.se>
src/jtag/drivers/rlink.c