提交 ee5850de 编写于 作者: D David S. Miller

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

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 338db085
...@@ -128,10 +128,8 @@ static int llc_ui_send_data(struct sock* sk, struct sk_buff *skb, int noblock) ...@@ -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) static void llc_ui_sk_init(struct socket *sock, struct sock *sk)
{ {
sock_graft(sk, sock);
sk->sk_type = sock->type; sk->sk_type = sock->type;
sk->sk_sleep = &sock->wait;
sk->sk_socket = sock;
sock->sk = sk;
sock->ops = &llc_ui_ops; sock->ops = &llc_ui_ops;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册