From: David S. Miller Date: Tue, 17 Jun 2008 08:21:03 +0000 (-0700) Subject: llc: Use sock_graft() instead of by-hand version. X-Git-Tag: v2.6.27-rc1~969^2~311 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5850defcbd98d3a9cb3e0ae93511e7c89bdecd;p=linux-2.6 llc: Use sock_graft() instead of by-hand version. Signed-off-by: David S. Miller --- diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c index 97101dcde4..5bcc452a24 100644 --- a/net/llc/af_llc.c +++ b/net/llc/af_llc.c @@ -128,10 +128,8 @@ static int llc_ui_send_data(struct sock* sk, struct sk_buff *skb, int noblock) static void llc_ui_sk_init(struct socket *sock, struct sock *sk) { + sock_graft(sk, sock); sk->sk_type = sock->type; - sk->sk_sleep = &sock->wait; - sk->sk_socket = sock; - sock->sk = sk; sock->ops = &llc_ui_ops; }