Commit ee5850de authored by David S. Miller's avatar David S. Miller

llc: Use sock_graft() instead of by-hand version.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 338db085
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment