Skip to content

Commit 376675d

Browse files
kinglongmeeJ. Bruce Fields
authored andcommitted
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>
1 parent 8536952 commit 376675d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/nfsd/nfs4xdr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4135,7 +4135,7 @@ nfsd4_encode_layoutreturn(struct nfsd4_compoundres *resp, __be32 nfserr,
41354135
return nfserr_resource;
41364136
*p++ = cpu_to_be32(lrp->lrs_present);
41374137
if (lrp->lrs_present)
4138-
nfsd4_encode_stateid(xdr, &lrp->lr_sid);
4138+
return nfsd4_encode_stateid(xdr, &lrp->lr_sid);
41394139
return nfs_ok;
41404140
}
41414141
#endif /* CONFIG_NFSD_PNFS */

0 commit comments

Comments
 (0)