summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/af_alg.c1
-rw-r--r--include/linux/Kbuild1
2 files changed, 2 insertions, 0 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c
index 450d51abe84..31f2b224ae4 100644
--- a/crypto/af_alg.c
+++ b/crypto/af_alg.c
@@ -312,6 +312,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) {
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 9aa9bcadf86..60db44c0878 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -81,6 +81,7 @@ header-y += hysdn_if.h
header-y += i2o-dev.h
header-y += i8k.h
header-y += if_addrlabel.h
+header-y += if_alg.h
header-y += if_arcnet.h
header-y += if_bonding.h
header-y += if_cablemodem.h