Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 376675da authored by Kinglong Mee's avatar Kinglong Mee Committed by J. Bruce Fields
Browse files

NFSD: Take care the return value from nfsd4_encode_stateid

parent 85369523
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */