]> err.no Git - linux-2.6/blobdiff - net/sunrpc/auth_gss/gss_krb5_crypto.c
[CRYPTO]: Use CRYPTO_TFM_REQ_MAY_SLEEP where appropriate
[linux-2.6] / net / sunrpc / auth_gss / gss_krb5_crypto.c
index 5a7265aeaf839c160ee047d9f319b0763fdefe82..7ad74449b18f4d84ff0279a263fd7475965508ae 100644 (file)
@@ -160,7 +160,7 @@ make_checksum(s32 cksumtype, char *header, int hdrlen, struct xdr_buf *body,
                                " unsupported checksum %d", cksumtype);
                        goto out;
        }
-       if (!(tfm = crypto_alloc_tfm(cksumname, 0)))
+       if (!(tfm = crypto_alloc_tfm(cksumname, CRYPTO_TFM_REQ_MAY_SLEEP)))
                goto out;
        cksum->len = crypto_tfm_alg_digestsize(tfm);
        if ((cksum->data = kmalloc(cksum->len, GFP_KERNEL)) == NULL)