From: Miloslav Trmač Date: Wed, 8 Dec 2010 06:36:19 +0000 (+0800) Subject: crypto: af_alg - Make sure sk_security is initialized on accept()ed sockets X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=507cad355fc9e426f2846c46a4edca2d22d25f44;p=linux-beck.git crypto: af_alg - Make sure sk_security is initialized on accept()ed sockets Signed-off-by: Miloslav Trmač Signed-off-by: Herbert Xu --- diff --git a/crypto/af_alg.c b/crypto/af_alg.c index cabed0e9c9d8..bd9e53c78026 100644 --- a/crypto/af_alg.c +++ b/crypto/af_alg.c @@ -242,6 +242,7 @@ int af_alg_accept(struct sock *sk, struct socket *newsock) goto unlock; sock_init_data(newsock, sk2); + sock_graft(sk2, newsock); err = type->accept(ask->private, sk2); if (err) {