Loading net/dccp/ipv4.c +3 −3 Original line number Diff line number Diff line Loading @@ -311,7 +311,7 @@ static void dccp_v4_err(struct sk_buff *skb, u32 info) } if (sk->sk_state == DCCP_TIME_WAIT) { inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); return; } Loading Loading @@ -614,7 +614,7 @@ static struct sock *dccp_v4_hnd_req(struct sock *sk, struct sk_buff *skb) bh_lock_sock(nsk); return nsk; } inet_twsk_put((struct inet_timewait_sock *)nsk); inet_twsk_put(inet_twsk(nsk)); return NULL; } Loading Loading @@ -980,7 +980,7 @@ static int dccp_v4_rcv(struct sk_buff *skb) goto discard_it; do_time_wait: inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); goto no_dccp_socket; } Loading net/dccp/ipv6.c +3 −3 Original line number Diff line number Diff line Loading @@ -285,7 +285,7 @@ static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, } if (sk->sk_state == DCCP_TIME_WAIT) { inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); return; } Loading Loading @@ -663,7 +663,7 @@ static struct sock *dccp_v6_hnd_req(struct sock *sk,struct sk_buff *skb) bh_lock_sock(nsk); return nsk; } inet_twsk_put((struct inet_timewait_sock *)nsk); inet_twsk_put(inet_twsk(nsk)); return NULL; } Loading Loading @@ -1109,7 +1109,7 @@ static int dccp_v6_rcv(struct sk_buff **pskb) goto discard_it; do_time_wait: inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); goto no_dccp_socket; } Loading net/ipv4/tcp_ipv4.c +7 −9 Original line number Diff line number Diff line Loading @@ -355,7 +355,7 @@ void tcp_v4_err(struct sk_buff *skb, u32 info) return; } if (sk->sk_state == TCP_TIME_WAIT) { inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); return; } Loading Loading @@ -960,7 +960,7 @@ static struct sock *tcp_v4_hnd_req(struct sock *sk, struct sk_buff *skb) bh_lock_sock(nsk); return nsk; } inet_twsk_put((struct inet_timewait_sock *)nsk); inet_twsk_put(inet_twsk(nsk)); return NULL; } Loading Loading @@ -1154,26 +1154,24 @@ int tcp_v4_rcv(struct sk_buff *skb) do_time_wait: if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) { inet_twsk_put((struct inet_timewait_sock *) sk); inet_twsk_put(inet_twsk(sk)); goto discard_it; } if (skb->len < (th->doff << 2) || tcp_checksum_complete(skb)) { TCP_INC_STATS_BH(TCP_MIB_INERRS); inet_twsk_put((struct inet_timewait_sock *) sk); inet_twsk_put(inet_twsk(sk)); goto discard_it; } switch (tcp_timewait_state_process((struct inet_timewait_sock *)sk, skb, th)) { switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { case TCP_TW_SYN: { struct sock *sk2 = inet_lookup_listener(&tcp_hashinfo, skb->nh.iph->daddr, th->dest, inet_iif(skb)); if (sk2) { inet_twsk_deschedule((struct inet_timewait_sock *)sk, &tcp_death_row); inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_deschedule(inet_twsk(sk), &tcp_death_row); inet_twsk_put(inet_twsk(sk)); sk = sk2; goto process; } Loading net/ipv6/tcp_ipv6.c +5 −6 Original line number Diff line number Diff line Loading @@ -329,7 +329,7 @@ static void tcp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, } if (sk->sk_state == TCP_TIME_WAIT) { inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); return; } Loading Loading @@ -749,7 +749,7 @@ static struct sock *tcp_v6_hnd_req(struct sock *sk,struct sk_buff *skb) bh_lock_sock(nsk); return nsk; } inet_twsk_put((struct inet_timewait_sock *)nsk); inet_twsk_put(inet_twsk(nsk)); return NULL; } Loading Loading @@ -1283,18 +1283,17 @@ static int tcp_v6_rcv(struct sk_buff **pskb) do_time_wait: if (!xfrm6_policy_check(NULL, XFRM_POLICY_IN, skb)) { inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); goto discard_it; } if (skb->len < (th->doff<<2) || tcp_checksum_complete(skb)) { TCP_INC_STATS_BH(TCP_MIB_INERRS); inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); goto discard_it; } switch (tcp_timewait_state_process((struct inet_timewait_sock *)sk, skb, th)) { switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { case TCP_TW_SYN: { struct sock *sk2; Loading Loading
net/dccp/ipv4.c +3 −3 Original line number Diff line number Diff line Loading @@ -311,7 +311,7 @@ static void dccp_v4_err(struct sk_buff *skb, u32 info) } if (sk->sk_state == DCCP_TIME_WAIT) { inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); return; } Loading Loading @@ -614,7 +614,7 @@ static struct sock *dccp_v4_hnd_req(struct sock *sk, struct sk_buff *skb) bh_lock_sock(nsk); return nsk; } inet_twsk_put((struct inet_timewait_sock *)nsk); inet_twsk_put(inet_twsk(nsk)); return NULL; } Loading Loading @@ -980,7 +980,7 @@ static int dccp_v4_rcv(struct sk_buff *skb) goto discard_it; do_time_wait: inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); goto no_dccp_socket; } Loading
net/dccp/ipv6.c +3 −3 Original line number Diff line number Diff line Loading @@ -285,7 +285,7 @@ static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, } if (sk->sk_state == DCCP_TIME_WAIT) { inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); return; } Loading Loading @@ -663,7 +663,7 @@ static struct sock *dccp_v6_hnd_req(struct sock *sk,struct sk_buff *skb) bh_lock_sock(nsk); return nsk; } inet_twsk_put((struct inet_timewait_sock *)nsk); inet_twsk_put(inet_twsk(nsk)); return NULL; } Loading Loading @@ -1109,7 +1109,7 @@ static int dccp_v6_rcv(struct sk_buff **pskb) goto discard_it; do_time_wait: inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); goto no_dccp_socket; } Loading
net/ipv4/tcp_ipv4.c +7 −9 Original line number Diff line number Diff line Loading @@ -355,7 +355,7 @@ void tcp_v4_err(struct sk_buff *skb, u32 info) return; } if (sk->sk_state == TCP_TIME_WAIT) { inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); return; } Loading Loading @@ -960,7 +960,7 @@ static struct sock *tcp_v4_hnd_req(struct sock *sk, struct sk_buff *skb) bh_lock_sock(nsk); return nsk; } inet_twsk_put((struct inet_timewait_sock *)nsk); inet_twsk_put(inet_twsk(nsk)); return NULL; } Loading Loading @@ -1154,26 +1154,24 @@ int tcp_v4_rcv(struct sk_buff *skb) do_time_wait: if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) { inet_twsk_put((struct inet_timewait_sock *) sk); inet_twsk_put(inet_twsk(sk)); goto discard_it; } if (skb->len < (th->doff << 2) || tcp_checksum_complete(skb)) { TCP_INC_STATS_BH(TCP_MIB_INERRS); inet_twsk_put((struct inet_timewait_sock *) sk); inet_twsk_put(inet_twsk(sk)); goto discard_it; } switch (tcp_timewait_state_process((struct inet_timewait_sock *)sk, skb, th)) { switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { case TCP_TW_SYN: { struct sock *sk2 = inet_lookup_listener(&tcp_hashinfo, skb->nh.iph->daddr, th->dest, inet_iif(skb)); if (sk2) { inet_twsk_deschedule((struct inet_timewait_sock *)sk, &tcp_death_row); inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_deschedule(inet_twsk(sk), &tcp_death_row); inet_twsk_put(inet_twsk(sk)); sk = sk2; goto process; } Loading
net/ipv6/tcp_ipv6.c +5 −6 Original line number Diff line number Diff line Loading @@ -329,7 +329,7 @@ static void tcp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, } if (sk->sk_state == TCP_TIME_WAIT) { inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); return; } Loading Loading @@ -749,7 +749,7 @@ static struct sock *tcp_v6_hnd_req(struct sock *sk,struct sk_buff *skb) bh_lock_sock(nsk); return nsk; } inet_twsk_put((struct inet_timewait_sock *)nsk); inet_twsk_put(inet_twsk(nsk)); return NULL; } Loading Loading @@ -1283,18 +1283,17 @@ static int tcp_v6_rcv(struct sk_buff **pskb) do_time_wait: if (!xfrm6_policy_check(NULL, XFRM_POLICY_IN, skb)) { inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); goto discard_it; } if (skb->len < (th->doff<<2) || tcp_checksum_complete(skb)) { TCP_INC_STATS_BH(TCP_MIB_INERRS); inet_twsk_put((struct inet_timewait_sock *)sk); inet_twsk_put(inet_twsk(sk)); goto discard_it; } switch (tcp_timewait_state_process((struct inet_timewait_sock *)sk, skb, th)) { switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { case TCP_TW_SYN: { struct sock *sk2; Loading