Commit 2efea43a authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] usb root hub strings

Someone changed the "get string" logic to use short reads,
not long ones, a while back.  That broke many root hub
string accesses (not through tools like "lsusb"!) because
that logic didn't handle short reads quite right.
parent f2f66137
...@@ -310,9 +310,9 @@ static int rh_string ( ...@@ -310,9 +310,9 @@ static int rh_string (
} else } else
return 0; return 0;
data [0] = 2 + ascii2utf (buf, data + 2, len - 2); data [0] = 2 * (strlen (buf) + 1);
data [1] = 3; /* type == string */ data [1] = 3; /* type == string */
return data [0]; return 2 + ascii2utf (buf, data + 2, len - 2);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment