summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2015-03-22 22:17:10 +0800
committerJ. Bruce Fields <bfields@redhat.com>2015-03-25 21:13:02 -0400
commit376675daeac3dc0e39b84ca90f0bdc41a9d44d46 (patch)
treea8cd5ecae8f9918a61da0f520832833cde5cba28
parent853695230e9847445ad42c330d023fca2324fd56 (diff)
downloadlinux-exynos-376675daeac3dc0e39b84ca90f0bdc41a9d44d46.tar.gz
linux-exynos-376675daeac3dc0e39b84ca90f0bdc41a9d44d46.tar.bz2
linux-exynos-376675daeac3dc0e39b84ca90f0bdc41a9d44d46.zip
NFSD: Take care the return value from nfsd4_encode_stateid
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r--fs/nfsd/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index c76654c3605f..5fb7e78169a6 100644
--- 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 */