evm: prevent racing during tfm allocation
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Mon, 5 Dec 2011 11:17:42 +0000 (13:17 +0200)
committerJames Morris <jmorris@namei.org>
Wed, 7 Dec 2011 23:06:12 +0000 (10:06 +1100)
commit143b01d33221e4937d3930e6bb2b63d70b7c7a65
tree5cae452fecfd8b1fb6b0ae1f159929ada81d8b1f
parent88d7ed35085184f15a2af3d9e88d775059b2f307
evm: prevent racing during tfm allocation

There is a small chance of racing during tfm allocation.
This patch fixes it.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Acked-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/integrity/evm/evm_crypto.c