mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-24 06:29:31 +07:00
nfsd4: fix test_stateid error reply encoding
If the entire operation fails then there's nothing to encode. Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
04819bf644
commit
a11fcce154
@ -3473,6 +3473,9 @@ nfsd4_encode_test_stateid(struct nfsd4_compoundres *resp, __be32 nfserr,
|
||||
struct nfsd4_test_stateid_id *stateid, *next;
|
||||
__be32 *p;
|
||||
|
||||
if (nfserr)
|
||||
return nfserr;
|
||||
|
||||
RESERVE_SPACE(4 + (4 * test_stateid->ts_num_ids));
|
||||
*p++ = htonl(test_stateid->ts_num_ids);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user