Skip to content
Snippets Groups Projects
Commit fac71cc4 authored by Kim B. Heino's avatar Kim B. Heino Committed by Remy Bohmer
Browse files

USB storage probe


While debugging one ill behaving USB device I found two bugs in USB
storage probe.

usb_stor_get_info() returns -1 (error), 0 (skip) or 1 (ok). First part
of this patch fixes error case.

Second part fixes usb_inquiry()'s retry counter handling. Original code
had retry = -1 on error case, not retry = 0 as checked in the next line.

Signed-off-by: default avatarKim B. Heino <Kim.Heino@bluegiga.com>
parent aaad108b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment