mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
e1e992e52f
commit
3ef9d943d2
1 changed files with 1 additions and 2 deletions
|
@ -882,11 +882,10 @@ back_from_confirm:
|
||||||
ip6_flush_pending_frames(sk);
|
ip6_flush_pending_frames(sk);
|
||||||
else if (!(msg->msg_flags & MSG_MORE))
|
else if (!(msg->msg_flags & MSG_MORE))
|
||||||
err = rawv6_push_pending_frames(sk, &fl, rp);
|
err = rawv6_push_pending_frames(sk, &fl, rp);
|
||||||
|
release_sock(sk);
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
dst_release(dst);
|
dst_release(dst);
|
||||||
if (!inet->hdrincl)
|
|
||||||
release_sock(sk);
|
|
||||||
out:
|
out:
|
||||||
fl6_sock_release(flowlabel);
|
fl6_sock_release(flowlabel);
|
||||||
return err<0?err:len;
|
return err<0?err:len;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue