SUNRPC/nfs: Fix return value for nfs4_callback_compound()
authorTrond Myklebust <trondmy@gmail.com>
Tue, 9 Apr 2019 15:46:14 +0000 (11:46 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 24 Apr 2019 13:46:34 +0000 (09:46 -0400)
commit83dd59a0b9afc3b1a2642fb5c9b0585b1c08768f
tree1a6f8142c2739fd44983729fda5b500d5cd0d13b
parent8a9f4f41248a4dc00a9f0831a50f8b7a2fd86bfc
SUNRPC/nfs: Fix return value for nfs4_callback_compound()

RPC server procedures are normally expected to return a __be32 encoded
status value of type 'enum rpc_accept_stat', however at least one function
wants to return an authentication status of type 'enum rpc_auth_stat'
in the case where authentication fails.
This patch adds functionality to allow this.

Fixes: a4e187d83d88 ("NFS: Don't drop CB requests with invalid principals")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfs/callback_xdr.c
include/linux/sunrpc/svc.h
net/sunrpc/svc.c