Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346565
b: refs/heads/master
c: 0af3950
h: refs/heads/master
i:
  346563: 733c025
v: v3
  • Loading branch information
Weston Andros Adamson authored and Trond Myklebust committed Nov 4, 2012
1 parent 6992099 commit 78b4839
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 332e008a44d1ab6ca85b2214578f2f89af04a2fc
refs/heads/master: 0af39507f60ee9f98b20f24af09c1a60655417ac
4 changes: 3 additions & 1 deletion trunk/net/sunrpc/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,9 @@ int svc_register(const struct svc_serv *serv, struct net *net,
unsigned int i;
int error = 0;

BUG_ON(proto == 0 && port == 0);
WARN_ON_ONCE(proto == 0 && port == 0);
if (proto == 0 && port == 0)
return -EINVAL;

for (progp = serv->sv_program; progp; progp = progp->pg_next) {
for (i = 0; i < progp->pg_nvers; i++) {
Expand Down

0 comments on commit 78b4839

Please sign in to comment.