summaryrefslogtreecommitdiffstats
path: root/net/llc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-06-17 01:21:03 -0700
committerDavid S. Miller <davem@davemloft.net>2008-06-17 01:21:03 -0700
commitee5850defcbd98d3a9cb3e0ae93511e7c89bdecd (patch)
tree94d72f32e0ae2f16b7f89b99feb62402b908adce /net/llc
parent338db085518a8436cdecd33f7b52a06ec16d9ec1 (diff)
downloadlinux-ee5850defcbd98d3a9cb3e0ae93511e7c89bdecd.tar.gz
linux-ee5850defcbd98d3a9cb3e0ae93511e7c89bdecd.tar.bz2
linux-ee5850defcbd98d3a9cb3e0ae93511e7c89bdecd.zip
llc: Use sock_graft() instead of by-hand version.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/llc')
-rw-r--r--net/llc/af_llc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c
index 97101dcde4c0..5bcc452a247f 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;
}