aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/rpcb_clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index 83af38df3267..1ef2d417af4e 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -249,7 +249,7 @@ static struct rpc_clnt *rpcb_create(char *hostname, struct sockaddr *srvaddr,
249 ((struct sockaddr_in6 *)srvaddr)->sin6_port = htons(RPCBIND_PORT); 249 ((struct sockaddr_in6 *)srvaddr)->sin6_port = htons(RPCBIND_PORT);
250 break; 250 break;
251 default: 251 default:
252 return NULL; 252 return ERR_PTR(-EAFNOSUPPORT);
253 } 253 }
254 254
255 return rpc_create(&args); 255 return rpc_create(&args);