projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8536952
)
NFSD: Take care the return value from nfsd4_encode_stateid
author
Kinglong Mee
<kinglongmee@gmail.com>
Sun, 22 Mar 2015 14:17:10 +0000
(22:17 +0800)
committer
J. Bruce Fields
<bfields@redhat.com>
Thu, 26 Mar 2015 01:13:02 +0000
(21:13 -0400)
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/nfs4xdr.c
b/fs/nfsd/nfs4xdr.c
index c76654c3605fa050043432310a6ace109071658a..5fb7e78169a6b27a1a5a4d5e9ec354c9e32f6c43 100644
(file)
--- a/
fs/nfsd/nfs4xdr.c
+++ b/
fs/nfsd/nfs4xdr.c
@@
-4135,7
+4135,7
@@
nfsd4_encode_layoutreturn(struct nfsd4_compoundres *resp, __be32 nfserr,
return nfserr_resource;
*p++ = cpu_to_be32(lrp->lrs_present);
if (lrp->lrs_present)
- nfsd4_encode_stateid(xdr, &lrp->lr_sid);
+
return
nfsd4_encode_stateid(xdr, &lrp->lr_sid);
return nfs_ok;
}
#endif /* CONFIG_NFSD_PNFS */