summaryrefslogtreecommitdiffstats
path: root/fs/afs/rxrpc.c
diff options
context:
space:
mode:
authorDavid Howells2017-03-16 17:27:47 +0100
committerDavid Howells2017-03-16 17:27:47 +0100
commit1157f153f37a8586765034470e4f00a4a6c4ce6f (patch)
treedba156f463cd8223fe7f2bc7a66d05fb91d80a35 /fs/afs/rxrpc.c
parentafs: Fix the maths in afs_fs_store_data() (diff)
downloadkernel-qcow2-linux-1157f153f37a8586765034470e4f00a4a6c4ce6f.tar.gz
kernel-qcow2-linux-1157f153f37a8586765034470e4f00a4a6c4ce6f.tar.xz
kernel-qcow2-linux-1157f153f37a8586765034470e4f00a4a6c4ce6f.zip
afs: Invalid op ID should abort with RXGEN_OPCODE
When we are given an invalid operation ID, we should abort that with RXGEN_OPCODE rather than RX_INVALID_OPERATION. Also map RXGEN_OPCODE to -ENOTSUPP. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/rxrpc.c')
-rw-r--r--fs/afs/rxrpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c
index bf45307ff201..bf7761fe6ef5 100644
--- a/fs/afs/rxrpc.c
+++ b/fs/afs/rxrpc.c
@@ -465,7 +465,7 @@ static void afs_deliver_to_call(struct afs_call *call)
abort_code, -ret, "KNC");
goto do_abort;
case -ENOTSUPP:
- abort_code = RX_INVALID_OPERATION;
+ abort_code = RXGEN_OPCODE;
rxrpc_kernel_abort_call(afs_socket, call->rxcall,
abort_code, -ret, "KIV");
goto do_abort;