Convert a GIANT_REQUIRED; into a NET_ASSERT_GIANT();, as sockets are
now only conditionally protected by Giant based on debug.mpsafenet.
This commit is contained in:
parent
79f40e185d
commit
6bfde9e63b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138418
@ -983,7 +983,7 @@ bootpc_fakeup_interface(struct bootpc_ifcontext *ifctx,
|
||||
struct ifaddr *ifa;
|
||||
struct sockaddr_dl *sdl;
|
||||
|
||||
GIANT_REQUIRED; /* XXX until socket locking done */
|
||||
NET_ASSERT_GIANT();
|
||||
|
||||
error = socreate(AF_INET, &ifctx->so, SOCK_DGRAM, 0, td->td_ucred, td);
|
||||
if (error != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user