SUNRPC/nfs: Fix return value for nfs4_callback_compound()
mainline inclusion from mainline-5.2-rc1 commit 83dd59a0 category: bugfix bugzilla: NA CVE: NA ------------------------------------------------- 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: a4e187d8 ("NFS: Don't drop CB requests with invalid principals") Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: NJ. Bruce Fields <bfields@redhat.com> (cherry picked from commit 83dd59a0) Signed-off-by: NQiheng Lin <linqiheng@huawei.com> Reviewed-by: NYue Haibing <yuehaibing@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录