aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/amcc/crypto4xx_core.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-04-16 15:01:09 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2016-04-20 17:50:01 +0800
commite81f3340bba2bdcdf021aff511830e718e6e2112 (patch)
tree2fce034abb35b8caed6170cb9ebad27cc813f95f /drivers/crypto/amcc/crypto4xx_core.h
parentcrypto: qat - fix section mismatch warning (diff)
downloadlinux-dev-e81f3340bba2bdcdf021aff511830e718e6e2112.tar.xz
linux-dev-e81f3340bba2bdcdf021aff511830e718e6e2112.zip
eCryptfs: Do not allocate hash tfm in NORECLAIM context
You cannot allocate crypto tfm objects in NORECLAIM or NOFS contexts. The ecryptfs code currently does exactly that for the MD5 tfm. This patch fixes it by preallocating the MD5 tfm in a safe context. The MD5 tfm is also reentrant so this patch removes the superfluous cs_hash_tfm_mutex. Reported-by: Nicolas Boichat <drinkcat@chromium.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/amcc/crypto4xx_core.h')
0 files changed, 0 insertions, 0 deletions