]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 12:13:16 +0000 (14:13 +0200)
commitace3fc1e3f3a85ec705805146247231b11e1babe
tree0a8e4c9ed8faf3d619517c3130e88ec2f46df7ad
parent0edeff6752d09d09df3535d34ba6c86c43d3d369
crypto: testmgr - don't use interruptible wait in tests

commit 8a45ac12ec5b6ee67f8559c78ae11d9af8b821ee upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
crypto/tcrypt.c
crypto/testmgr.c