]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - don't use interruptible wait in tests
authorRabin Vincent <rabin.vincent@axis.com>
Fri, 9 Jan 2015 15:25:28 +0000 (16:25 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 Jan 2015 11:30:44 +0000 (22:30 +1100)
commitc2052b79d5f6fb51b7b2291390bba591ce724336
tree6e3930b39740e7070c50dc62101340a3e634175c
parent4ca2e66fa9b21778efb68c2ab780e6b249edb2b3
crypto: testmgr - don't use interruptible wait in tests

tcrypt/testmgr uses wait_for_completion_interruptible() everywhere when
it waits for a request to be completed.  If it's interrupted, then the
test is aborted and the request is freed.

However, if any of these calls actually do get interrupted, the result
will likely be a kernel crash, when the driver handles the now-freed
request.  Use wait_for_completion() instead.

Signed-off-by: Rabin Vincent <rabin.vincent@axis.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c
crypto/testmgr.c