android_kernel_google_msm/fs/lockd
Trond Myklebust 08eaf6a4ee NLM: nlm_lookup_file() may return NLMv4-specific error codes
commit cd0b16c1c3 upstream.

If the filehandle is stale, or open access is denied for some reason,
nlm_fopen() may return one of the NLMv4-specific error codes nlm4_stale_fh
or nlm4_failed. These get passed right through nlm_lookup_file(),
and so when nlmsvc_retrieve_args() calls the latter, it needs to filter
the result through the cast_status() machinery.

Failure to do so, will trigger the BUG_ON() in encode_nlm_stat...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Reported-by: Larry McVoy <lm@bitmover.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-28 10:14:13 -07:00
..
clnt4xdr.c lockd: fix the endianness bug 2012-04-13 13:50:52 -04:00
clntlock.c Lockd: pass network namespace to creation and destruction routines 2012-07-16 09:04:39 -07:00
clntproc.c
clntxdr.c NLM: nlm_lookup_file() may return NLMv4-specific error codes 2012-10-28 10:14:13 -07:00
grace.c
host.c Lockd: shutdown NLM hosts in network namespace context 2012-02-15 00:19:48 -05:00
Makefile
mon.c lockd: use rpc client's cl_nodename for id encoding 2012-10-21 09:27:57 -07:00
netns.h Lockd: pernet usage counter introduced 2012-02-15 00:19:47 -05:00
svc.c LockD: pass service to per-net up and down functions 2012-10-02 10:30:48 -07:00
svc4proc.c
svclock.c SUNRPC/LOCKD: Fix build warnings when CONFIG_SUNRPC_DEBUG is undefined 2012-03-21 09:31:44 -04:00
svcproc.c NLM: nlm_lookup_file() may return NLMv4-specific error codes 2012-10-28 10:14:13 -07:00
svcshare.c
svcsubs.c vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb 2012-01-06 23:16:53 -05:00
xdr.c
xdr4.c