mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
In usbtest, tests 5 - 8 use the scatter-gather library in usbcore without any sort of timeout. If there's a problem in the gadget or host controller being tested, the test can hang. This patch adds a 10-second timeout to the tests, so that they will fail gracefully with an ETIMEDOUT error instead of hanging. Signed-off-by: Alan Stern <[email protected]> Reported-by: Huang Rui <[email protected]> Tested-by: Huang Rui <[email protected]> CC: <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>