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

Commit b3b02ae5 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4.1: Fix a request leak on the back channel



If the call to svc_process_common() fails, then the request
needs to be freed before we can exit bc_svc_process.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
parent 2d117403
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1377,7 +1377,8 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req,
						sizeof(req->rq_snd_buf));
		return bc_send(req);
	} else {
		/* Nothing to do to drop request */
		/* drop request */
		xprt_free_bc_request(req);
		return 0;
	}
}