NFSD: Take care the return value from nfsd4_encode_stateid
Subsystems (2)
PATCH 1/1 NFSD: Take care the return value from nfsd4_encode_stateid
Signed-off-by Kinglong Mee <[email protected]>
--- fs/nfsd/nfs4xdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/nfs4xdr.c +1 -1
@@ -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 */
Signature · 1 line
2.3.3
Quoted 1 line · Kinglong Mee
Signed-off-by Kinglong Mee <[email protected]>
Looks good,
Reviewed-by Christoph Hellwig <[email protected]>