From: YOSHIFUJI Hideaki Date: Mon, 12 Nov 2007 12:00:22 +0000 (+0100) Subject: [IPV6]: Fix unbalanced socket reference with MSG_CONFIRM. X-Git-Tag: v2.6.16.58-rc1~17 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=70b0f728caaf2c1987c45c7a2c985f7c333fe0d5;p=karo-tx-linux.git [IPV6]: Fix unbalanced socket reference with MSG_CONFIRM. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller Signed-off-by: Adrian Bunk --- diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 5babed88b08a..4c7920569081 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -801,10 +801,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); - release_sock(sk); out: fl6_sock_release(flowlabel); return err<0?err:len;