mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
Revert the change in revision 1.77 of kern/uipc_socket2.c. It is causing
a panic because the socket's state isn't as expected by sofree(). Discussed with: dillon, fenner
This commit is contained in:
parent
30201b6cef
commit
5ee0a409fc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106326
@ -205,7 +205,7 @@ sonewconn(head, connstatus)
|
||||
#endif
|
||||
if (soreserve(so, head->so_snd.sb_hiwat, head->so_rcv.sb_hiwat) ||
|
||||
(*so->so_proto->pr_usrreqs->pru_attach)(so, 0, NULL)) {
|
||||
sotryfree(so);
|
||||
sodealloc(so);
|
||||
return ((struct socket *)0);
|
||||
}
|
||||
|
||||
|
@ -231,7 +231,7 @@ sobind(so, nam, td)
|
||||
return (error);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
sodealloc(struct socket *so)
|
||||
{
|
||||
|
||||
|
@ -205,7 +205,7 @@ sonewconn(head, connstatus)
|
||||
#endif
|
||||
if (soreserve(so, head->so_snd.sb_hiwat, head->so_rcv.sb_hiwat) ||
|
||||
(*so->so_proto->pr_usrreqs->pru_attach)(so, 0, NULL)) {
|
||||
sotryfree(so);
|
||||
sodealloc(so);
|
||||
return ((struct socket *)0);
|
||||
}
|
||||
|
||||
|
@ -405,6 +405,7 @@ int soconnect2(struct socket *so1, struct socket *so2);
|
||||
int socow_setup(struct mbuf *m0, struct uio *uio);
|
||||
int socreate(int dom, struct socket **aso, int type, int proto,
|
||||
struct ucred *cred, struct thread *td);
|
||||
void sodealloc(struct socket *so);
|
||||
int sodisconnect(struct socket *so);
|
||||
void sofree(struct socket *so);
|
||||
int sogetopt(struct socket *so, struct sockopt *sopt);
|
||||
|
Loading…
Reference in New Issue
Block a user