X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=security%2Fseclvl.c;h=96b1f2122f67bdac673a18fab792ea56e8d236ab;hb=85747f0325406f3393f48e50c7e31437e2915141;hp=c8e87b22c9bdcca5e9d26593b383441109381ce7;hpb=1d345dac1f30af1cd9f3a1faa12f9f18f17f236e;p=linux-2.6 diff --git a/security/seclvl.c b/security/seclvl.c index c8e87b22c9..96b1f2122f 100644 --- a/security/seclvl.c +++ b/security/seclvl.c @@ -321,7 +321,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");