X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=net%2Fiucv%2Faf_iucv.c;h=02b45a8e8b35729a65c6d796136a846aa2df648b;hb=a02040d8d5d533773f98e02e1a8e56db5fa7a363;hp=37d674e6f8a9f4f1e8bc31ea49ed8a4f1333241f;hpb=554828ee0db41618d101d9549db8808af9fd9d65;p=deliverable%2Flinux.git diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index 37d674e6f8a9..02b45a8e8b35 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -530,8 +531,10 @@ static void iucv_sock_close(struct sock *sk) static void iucv_sock_init(struct sock *sk, struct sock *parent) { - if (parent) + if (parent) { sk->sk_type = parent->sk_type; + security_sk_clone(parent, sk); + } } static struct sock *iucv_sock_alloc(struct socket *sock, int proto, gfp_t prio, int kern)