diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2014-06-03 11:11:34 -0400 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-07-02 12:06:06 +0200 |
commit | c0c1bcdd4ae9d9ca0adfdeeee719f6cacb8320fc (patch) | |
tree | 5c7917698fa0b99954bc45e3833996d641b9ab1a /lib/timerqueue.c | |
parent | cdd3452f62b54413bd4d68e44bac2bfa81adaa12 (diff) |
USB: usbtest: add a timeout for scatter-gather tests
commit 32b36eeae6a859670d2939a7d6136cb5e9ed64f8 upstream.
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 <stern@rowland.harvard.edu>
Reported-by: Huang Rui <ray.huang@amd.com>
Tested-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions