From: Weston Andros Adamson <dros@netapp.com> Date: Tue, 13 Aug 2013 20:37:38 +0000 (-0400) Subject: nfs4: Map NFS4ERR_WRONG_CRED to EPERM X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8897538e97ed80570f6e3befc41ca0288b776799;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git nfs4: Map NFS4ERR_WRONG_CRED to EPERM Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index e3cdfe346ebc..cb56102ad40e 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -152,6 +152,7 @@ static int nfs4_map_errors(int err) case -NFS4ERR_RECALLCONFLICT: return -EREMOTEIO; case -NFS4ERR_WRONGSEC: + case -NFS4ERR_WRONG_CRED: return -EPERM; case -NFS4ERR_BADOWNER: case -NFS4ERR_BADNAME: