mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-16 13:23:36 +00:00
Don't use spl around call to in_pcballoc() in IPv6 raw socket support;
all necessary synchronization appears present. MFC after: 3 months
This commit is contained in:
parent
41ba156433
commit
ff7425ced0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157676
|
@ -547,7 +547,7 @@ rip6_attach(struct socket *so, int proto, struct thread *td)
|
|||
{
|
||||
struct inpcb *inp;
|
||||
struct icmp6_filter *filter;
|
||||
int error, s;
|
||||
int error;
|
||||
|
||||
inp = sotoinpcb(so);
|
||||
KASSERT(inp == NULL, ("rip6_attach: inp != NULL"));
|
||||
|
@ -561,9 +561,7 @@ rip6_attach(struct socket *so, int proto, struct thread *td)
|
|||
if (filter == NULL)
|
||||
return ENOMEM;
|
||||
INP_INFO_WLOCK(&ripcbinfo);
|
||||
s = splnet();
|
||||
error = in_pcballoc(so, &ripcbinfo, "raw6inp");
|
||||
splx(s);
|
||||
if (error) {
|
||||
INP_INFO_WUNLOCK(&ripcbinfo);
|
||||
FREE(filter, M_PCB);
|
||||
|
|
Loading…
Reference in a new issue