diff options
author | David Howells <dhowells@redhat.com> | 2017-03-16 16:27:47 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-03-16 16:27:47 +0000 |
commit | 1157f153f37a8586765034470e4f00a4a6c4ce6f (patch) | |
tree | dba156f463cd8223fe7f2bc7a66d05fb91d80a35 /fs/afs/misc.c | |
parent | 146a1192783697810b63a1e41c4d59fc93387340 (diff) | |
download | linux-1157f153f37a8586765034470e4f00a4a6c4ce6f.tar.bz2 |
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/misc.c')
-rw-r--r-- | fs/afs/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/afs/misc.c b/fs/afs/misc.c index 91ea1aa0d8b3..100b207efc9e 100644 --- a/fs/afs/misc.c +++ b/fs/afs/misc.c @@ -84,6 +84,8 @@ int afs_abort_to_error(u32 abort_code) case RXKADDATALEN: return -EKEYREJECTED; case RXKADILLEGALLEVEL: return -EKEYREJECTED; + case RXGEN_OPCODE: return -ENOTSUPP; + default: return -EREMOTEIO; } } |