From: YOSHIFUJI Hideaki Date: Fri, 14 Sep 2007 23:45:40 +0000 (-0700) Subject: [IPV6]: Fix unbalanced socket reference with MSG_CONFIRM. X-Git-Tag: v2.6.23-rc7~33^2~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef9d943d26dea764f4fecf3767001c90b778b0c;p=linux-2.6 [IPV6]: Fix unbalanced socket reference with MSG_CONFIRM. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index e27383d855..77167afa34 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -882,11 +882,10 @@ back_from_confirm: ip6_flush_pending_frames(sk); else if (!(msg->msg_flags & MSG_MORE)) err = rawv6_push_pending_frames(sk, &fl, rp); + release_sock(sk); } done: dst_release(dst); - if (!inet->hdrincl) - release_sock(sk); out: fl6_sock_release(flowlabel); return err<0?err:len;