Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kinglong Mee and committed by
J. Bruce Fields
376675da 85369523

+1 -1
+1 -1
fs/nfsd/nfs4xdr.c
··· 4135 4135 return nfserr_resource; 4136 4136 *p++ = cpu_to_be32(lrp->lrs_present); 4137 4137 if (lrp->lrs_present) 4138 - nfsd4_encode_stateid(xdr, &lrp->lr_sid); 4138 + return nfsd4_encode_stateid(xdr, &lrp->lr_sid); 4139 4139 return nfs_ok; 4140 4140 } 4141 4141 #endif /* CONFIG_NFSD_PNFS */