Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346570
b: refs/heads/master
c: 50d2bdb
h: refs/heads/master
v: v3
  • Loading branch information
Weston Andros Adamson authored and Trond Myklebust committed Nov 4, 2012
1 parent 17f9d1a commit d620e4c
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 0a0c2a57bc9a47ae876077fdc4678eca33c26ae4
refs/heads/master: 50d2bdb19734f9e9f21e63881a9b6c8db4cc0eb7
7 changes: 6 additions & 1 deletion trunk/net/sunrpc/clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,12 @@ int rpc_call_sync(struct rpc_clnt *clnt, const struct rpc_message *msg, int flag
};
int status;

BUG_ON(flags & RPC_TASK_ASYNC);
WARN_ON_ONCE(flags & RPC_TASK_ASYNC);
if (flags & RPC_TASK_ASYNC) {
rpc_release_calldata(task_setup_data.callback_ops,
task_setup_data.callback_data);
return -EINVAL;
}

task = rpc_run_task(&task_setup_data);
if (IS_ERR(task))
Expand Down

0 comments on commit d620e4c

Please sign in to comment.