--- ehci-q.c	2005-10-16 15:32:13.237613120 +0200
+++ ehci-q_patch.c	2005-10-16 15:33:05.622649384 +0200
@@ -524,7 +524,7 @@
 		buf = 0;
 
 	/* for zero length DATA stages, STATUS is always IN */
-	if (!buf || is_input)
+	if (!len || is_input)
 		token |= (1 /* "in" */ << 8);
 	/* else it's already initted to "out" pid (0 << 8) */
 
