Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134677
b: refs/heads/master
c: 800d55f
h: refs/heads/master
i:
  134675: 825e590
v: v3
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Feb 25, 2009
1 parent 1d854d6 commit 4792927
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ce85fe402137824246bad03ff85f3913d565c17
refs/heads/master: 800d55f146098c5ffd1914d7eef2fd4a6d558b1d
3 changes: 1 addition & 2 deletions trunk/net/ipv6/ipv6_sockglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname,
if (opt)
sock_kfree_s(sk, opt, opt->tot_len);
pktopt = xchg(&np->pktoptions, NULL);
if (pktopt)
kfree_skb(pktopt);
kfree_skb(pktopt);

sk->sk_destruct = inet_sock_destruct;
/*
Expand Down
6 changes: 2 additions & 4 deletions trunk/net/ipv6/tcp_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,7 @@ static inline void syn_flood_warning(struct sk_buff *skb)

static void tcp_v6_reqsk_destructor(struct request_sock *req)
{
if (inet6_rsk(req)->pktopts)
kfree_skb(inet6_rsk(req)->pktopts);
kfree_skb(inet6_rsk(req)->pktopts);
}

#ifdef CONFIG_TCP_MD5SIG
Expand Down Expand Up @@ -1611,8 +1610,7 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
}
}

if (opt_skb)
kfree_skb(opt_skb);
kfree_skb(opt_skb);
return 0;
}

Expand Down

0 comments on commit 4792927

Please sign in to comment.