mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-14 04:41:26 +00:00
llc: Use sock_graft() instead of by-hand version.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
338db08551
commit
ee5850defc
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user