sunrpc: Create sockets in net namespaces
The context is already known in all the sock_create callers. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
committed by
J. Bruce Fields
parent
721db93a55
commit
14ec63c333
@@ -1425,7 +1425,7 @@ static struct svc_xprt *svc_create_socket(struct svc_serv *serv,
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
error = sock_create_kern(family, type, protocol, &sock);
|
||||
error = __sock_create(net, family, type, protocol, &sock, 1);
|
||||
if (error < 0)
|
||||
return ERR_PTR(error);
|
||||
|
||||
|
Reference in New Issue
Block a user