diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-09-14 19:45:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-09-14 19:45:40 -0400 |
commit | 3ef9d943d26dea764f4fecf3767001c90b778b0c (patch) | |
tree | f1fab72a4de636b6019374380dfb3afc9b3f9888 /net/ipv6 | |
parent | e1e992e52faa588667e1378a2573b4b8e3fa6670 (diff) |
[IPV6]: Fix unbalanced socket reference with MSG_CONFIRM.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/raw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index e27383d855de..77167afa3455 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -882,11 +882,10 @@ back_from_confirm: | |||
882 | ip6_flush_pending_frames(sk); | 882 | ip6_flush_pending_frames(sk); |
883 | else if (!(msg->msg_flags & MSG_MORE)) | 883 | else if (!(msg->msg_flags & MSG_MORE)) |
884 | err = rawv6_push_pending_frames(sk, &fl, rp); | 884 | err = rawv6_push_pending_frames(sk, &fl, rp); |
885 | release_sock(sk); | ||
885 | } | 886 | } |
886 | done: | 887 | done: |
887 | dst_release(dst); | 888 | dst_release(dst); |
888 | if (!inet->hdrincl) | ||
889 | release_sock(sk); | ||
890 | out: | 889 | out: |
891 | fl6_sock_release(flowlabel); | 890 | fl6_sock_release(flowlabel); |
892 | return err<0?err:len; | 891 | return err<0?err:len; |