diff options
-rw-r--r-- | crypto/af_alg.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
242 | goto unlock; | 242 | goto unlock; |
243 | 243 | ||
244 | sock_init_data(newsock, sk2); | 244 | sock_init_data(newsock, sk2); |
245 | sock_graft(sk2, newsock); | ||
245 | 246 | ||
246 | err = type->accept(ask->private, sk2); | 247 | err = type->accept(ask->private, sk2); |
247 | if (err) { | 248 | if (err) { |