git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sunrpc: Don't return NULL from rpcb_create
[pandora-kernel.git]
/
net
/
sunrpc
/
rpcb_clnt.c
diff --git
a/net/sunrpc/rpcb_clnt.c
b/net/sunrpc/rpcb_clnt.c
index
83af38d
..
1ef2d41
100644
(file)
--- 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,
((struct sockaddr_in6 *)srvaddr)->sin6_port = htons(RPCBIND_PORT);
break;
default:
- return
NULL
;
+ return
ERR_PTR(-EAFNOSUPPORT)
;
}
return rpc_create(&args);