X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=security%2Fseclvl.c;h=dc4e17b6eaf6623c1547363d0b22ee660a556508;hb=ddbf9ef385bfbef897210733abfb73cb9b94ecec;hp=f8700e935b33360b49bb01f16e4cd04b5313fa6b;hpb=2c40579bdc2a94977fcff2521d5b53a97c33e77a;p=mv-sheeva.git diff --git a/security/seclvl.c b/security/seclvl.c index f8700e935b3..dc4e17b6eaf 100644 --- a/security/seclvl.c +++ b/security/seclvl.c @@ -205,7 +205,7 @@ plaintext_to_sha1(unsigned char *hash, const char *plaintext, int len) "bytes.\n", len, PAGE_SIZE); return -ENOMEM; } - tfm = crypto_alloc_tfm("sha1", 0); + tfm = crypto_alloc_tfm("sha1", CRYPTO_TFM_REQ_MAY_SLEEP); if (tfm == NULL) { seclvl_printk(0, KERN_ERR, "Failed to load transform for SHA1\n");