Skip to contentSkip to conversation

: Make LLC use sock_graft()

PATCH In review David Miller 2 participants 2 messages Jun 17, 2008

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 : Make LLC use sock_graft()

Applied and pushed out to net-next-2.6

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

---
 net/llc/af_llc.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
net/llc/af_llc.c +1 -3
index 97101dc..5bcc452 100644
@@ -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;
 }
 
Signature · 1 line
1.5.5.1.308.g1fbb5