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

Commit e0a63c0b authored by Kinglong Mee's avatar Kinglong Mee Committed by Trond Myklebust
Browse files

NFS: Return directly if encode_sessionid fail



encode_sessionid() may return error, nfs needs process the return value.

Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 403889c0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -699,7 +699,9 @@ static __be32 encode_cb_sequence_res(struct svc_rqst *rqstp,
	if (unlikely(status != 0))
		goto out;

	encode_sessionid(xdr, &res->csr_sessionid);
	status = encode_sessionid(xdr, &res->csr_sessionid);
	if (status)
		goto out;

	p = xdr_reserve_space(xdr, 4 * sizeof(uint32_t));
	if (unlikely(p == NULL))