aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/svc.c')
-rw-r--r--net/sunrpc/svc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index e4aabc02368b..889d7b11b9ac 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -818,7 +818,7 @@ static int __svc_rpcb_register4(const u32 program, const u32 version,
818 return -ENOPROTOOPT; 818 return -ENOPROTOOPT;
819 } 819 }
820 820
821 error = rpcb_v4_register(program, version, 821 error = rpcb_v4_register(&init_net, program, version,
822 (const struct sockaddr *)&sin, netid); 822 (const struct sockaddr *)&sin, netid);
823 823
824 /* 824 /*
@@ -826,7 +826,7 @@ static int __svc_rpcb_register4(const u32 program, const u32 version,
826 * registration request with the legacy rpcbind v2 protocol. 826 * registration request with the legacy rpcbind v2 protocol.
827 */ 827 */
828 if (error == -EPROTONOSUPPORT) 828 if (error == -EPROTONOSUPPORT)
829 error = rpcb_register(program, version, protocol, port); 829 error = rpcb_register(&init_net, program, version, protocol, port);
830 830
831 return error; 831 return error;
832} 832}
@@ -865,7 +865,7 @@ static int __svc_rpcb_register6(const u32 program, const u32 version,
865 return -ENOPROTOOPT; 865 return -ENOPROTOOPT;
866 } 866 }
867 867
868 error = rpcb_v4_register(program, version, 868 error = rpcb_v4_register(&init_net, program, version,
869 (const struct sockaddr *)&sin6, netid); 869 (const struct sockaddr *)&sin6, netid);
870 870
871 /* 871 /*
@@ -968,14 +968,14 @@ static void __svc_unregister(const u32 program, const u32 version,
968{ 968{
969 int error; 969 int error;
970 970
971 error = rpcb_v4_register(program, version, NULL, ""); 971 error = rpcb_v4_register(&init_net, program, version, NULL, "");
972 972
973 /* 973 /*
974 * User space didn't support rpcbind v4, so retry this 974 * User space didn't support rpcbind v4, so retry this
975 * request with the legacy rpcbind v2 protocol. 975 * request with the legacy rpcbind v2 protocol.
976 */ 976 */
977 if (error == -EPROTONOSUPPORT) 977 if (error == -EPROTONOSUPPORT)
978 error = rpcb_register(program, version, 0, 0); 978 error = rpcb_register(&init_net, program, version, 0, 0);
979 979
980 dprintk("svc: %s(%sv%u), error %d\n", 980 dprintk("svc: %s(%sv%u), error %d\n",
981 __func__, progname, version, error); 981 __func__, progname, version, error);