]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
afs: Invalid op ID should abort with RXGEN_OPCODE
authorDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:47 +0000 (16:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:24 +0000 (10:07 +0100)
commitab239061161929a3aa048cb514b0183b8742b04c
treea51be449d3de1aca5c2012c7f1b1742d258352d0
parent972e7b7cbf5c82e9b0b963c9443a30dd3354687b
afs: Invalid op ID should abort with RXGEN_OPCODE

[ Upstream commit 1157f153f37a8586765034470e4f00a4a6c4ce6f ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/afs/misc.c
fs/afs/rxrpc.c