X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=crypto%2Falgif_aead.c;h=0aa6fdfb448a8c4081e06aa9dcb041433dc280a5;hb=e89c6fdf9e0eb1b5a03574d4ca73e83eae8deb91;hp=e0408a480d2f4eb8f818c9590ec9a3d7d166e25d;hpb=3fc7aeeb08bfde59877e7f9a4eea3c5ebcae72be;p=deliverable%2Flinux.git diff --git a/crypto/algif_aead.c b/crypto/algif_aead.c index e0408a480d2f..0aa6fdfb448a 100644 --- a/crypto/algif_aead.c +++ b/crypto/algif_aead.c @@ -90,6 +90,7 @@ static void aead_put_sgl(struct sock *sk) put_page(sg_page(sg + i)); sg_assign_page(sg + i, NULL); } + sg_init_table(sg, ALG_MAX_PAGES); sgl->cur = 0; ctx->used = 0; ctx->more = 0; @@ -514,8 +515,7 @@ static struct proto_ops algif_aead_ops = { static void *aead_bind(const char *name, u32 type, u32 mask) { - return crypto_alloc_aead(name, type | CRYPTO_ALG_AEAD_NEW, - mask | CRYPTO_ALG_AEAD_NEW); + return crypto_alloc_aead(name, type, mask); } static void aead_release(void *private)