evm: prevent racing during tfm allocation
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Mon, 5 Dec 2011 11:17:42 +0000 (13:17 +0200)
committerDmitry Kasatkin <dmitry.kasatkin@intel.com>
Tue, 20 Dec 2011 15:50:08 +0000 (17:50 +0200)
commit97426f985729573cea06e82e271cc3929f1f5f8e
tree4aafe725018a95dc5c76ede5199d24aea524b060
parentd21b59451886cb82448302f8d6f9ac87c3bd56cf
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