aboutsummaryrefslogtreecommitdiffstats
path: root/net/llc/af_llc.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-09-22 03:40:59 -0400
committerArnaldo Carvalho de Melo <acme@mandriva.com>2005-09-22 03:40:59 -0400
commit04e4223f44b89e50f275cb6b95a58ebe2c4909be (patch)
tree16f797eef4e2620b4150ddb94da78eaeb2baa679 /net/llc/af_llc.c
parentafdbe35787ea3390af0f1dd38b3dd9d8a8d313e7 (diff)
[LLC]: Do better struct sock accounting on skbs
Signed-off-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/llc/af_llc.c')
-rw-r--r--net/llc/af_llc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c
index f536369cdb52..ad9aad807aa8 100644
--- a/net/llc/af_llc.c
+++ b/net/llc/af_llc.c
@@ -628,7 +628,6 @@ static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags)
628 /* put original socket back into a clean listen state. */ 628 /* put original socket back into a clean listen state. */
629 sk->sk_state = TCP_LISTEN; 629 sk->sk_state = TCP_LISTEN;
630 sk->sk_ack_backlog--; 630 sk->sk_ack_backlog--;
631 skb->sk = NULL;
632 dprintk("%s: ok success on %02X, client on %02X\n", __FUNCTION__, 631 dprintk("%s: ok success on %02X, client on %02X\n", __FUNCTION__,
633 llc_sk(sk)->addr.sllc_sap, newllc->daddr.lsap); 632 llc_sk(sk)->addr.sllc_sap, newllc->daddr.lsap);
634frees: 633frees:
@@ -740,7 +739,6 @@ static int llc_ui_sendmsg(struct kiocb *iocb, struct socket *sock,
740 lock_sock(sk); 739 lock_sock(sk);
741 if (!skb) 740 if (!skb)
742 goto release; 741 goto release;
743 skb->sk = sk;
744 skb->dev = llc->dev; 742 skb->dev = llc->dev;
745 skb->protocol = llc_proto_type(addr->sllc_arphrd); 743 skb->protocol = llc_proto_type(addr->sllc_arphrd);
746 skb_reserve(skb, hdrlen); 744 skb_reserve(skb, hdrlen);