From: Alan Stern Date: Tue, 3 Jun 2014 15:11:34 +0000 (-0400) Subject: USB: usbtest: add a timeout for scatter-gather tests X-Git-Tag: omap-for-v3.16/fixes-rc4~77^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32b36eeae6a859670d2939a7d6136cb5e9ed64f8;p=pandora-kernel.git USB: usbtest: add a timeout for scatter-gather tests 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 Reported-by: Huang Rui Tested-by: Huang Rui CC: Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed