nfsd: fix return of nfs4_acl_write_who
authorJeff Layton <jlayton@primarydata.com>
Tue, 17 Jun 2014 10:14:08 +0000 (06:14 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 23 Jun 2014 15:31:38 +0000 (11:31 -0400)
commitf7ce5d284253db9760fc1c3a96b66ec2d9abf0ab
treeee42e7e0825cfbf4f24311338b7785e0326465d7
parent94ec938b612eb877bb6622847972dd739ef738b8
nfsd: fix return of nfs4_acl_write_who

AFAICT, the only way to hit this error is to pass this function a bogus
"who" value. In that case, we probably don't want to return -1 as that
could get sent back to the client. Turn this into nfserr_serverfault,
which is a more appropriate error for a server bug like this.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4acl.c
This page took 0.024843 seconds and 5 git commands to generate.