Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62161
b: refs/heads/master
c: bd6dc74
h: refs/heads/master
i:
  62159: 58af992
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Jul 20, 2007
1 parent c690054 commit a82eb44
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 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: 5f7e08ca7b657f5678dd62a080f7f3a8f923ad02
refs/heads/master: bd6dc742a4b1945861795a66dc27c65365c5f28e
21 changes: 10 additions & 11 deletions trunk/fs/afs/rxrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ void afs_send_simple_reply(struct afs_call *call, const void *buf, size_t len)
{
struct msghdr msg;
struct iovec iov[1];
int n;

_enter("");

Expand All @@ -806,22 +807,20 @@ void afs_send_simple_reply(struct afs_call *call, const void *buf, size_t len)
msg.msg_flags = 0;

call->state = AFS_CALL_AWAIT_ACK;
switch (rxrpc_kernel_send_data(call->rxcall, &msg, len)) {
case 0:
n = rxrpc_kernel_send_data(call->rxcall, &msg, len);
if (n >= 0) {
_leave(" [replied]");
return;

case -ENOMEM:
}
if (n == -ENOMEM) {
_debug("oom");
rxrpc_kernel_abort_call(call->rxcall, RX_USER_ABORT);
default:
rxrpc_kernel_end_call(call->rxcall);
call->rxcall = NULL;
call->type->destructor(call);
afs_free_call(call);
_leave(" [error]");
return;
}
rxrpc_kernel_end_call(call->rxcall);
call->rxcall = NULL;
call->type->destructor(call);
afs_free_call(call);
_leave(" [error]");
}

/*
Expand Down

0 comments on commit a82eb44

Please sign in to comment.