git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
236e16d
)
Fix clean up code path in _usb_bulk_write_async (uninitialized memory)
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 25 Oct 2010 10:57:32 +0000 (12:57 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 25 Oct 2010 10:57:32 +0000 (12:57 +0200)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
06f6293
..
9cf425f
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-1407,6
+1407,7
@@
static int _usb_bulk_write_async(struct ftdi_context *ftdi, int ep, char *bytes,
do
{
/* find a free urb buffer we can use */
+ i = 0;
urb=NULL;
for (cleanup_count=0; urb==NULL && cleanup_count <= 1; cleanup_count++)
{