From ca208831e6161b79719ba5fc65bc08187cea6c29 Mon Sep 17 00:00:00 2001 From: Vasily Averin Date: Thu, 28 Mar 2019 16:09:37 +0800 Subject: [PATCH] sunrpc: make visible processing error in bc_svc_process() mainline inclusion from mainline-5.0-rc1 commit 8f7766c805d27a56e37cf7e108c2208649b44569 category: bugfix bugzilla: 10609 CVE: NA --------------------------- Force bc_svc_process() to generate debug message after processing errors Signed-off-by: Vasily Averin Signed-off-by: J. Bruce Fields Signed-off-by: zhengbin Reviewed-by: yangerkun Signed-off-by: Yang Yingliang --- net/sunrpc/svc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index d65f8d35de87..faf145df6c60 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -1502,9 +1502,9 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req, if (!proc_error) { /* Processing error: drop the request */ xprt_free_bc_request(req); - return 0; + error = -EINVAL; + goto out; } - /* Finally, send the reply synchronously */ memcpy(&req->rq_snd_buf, &rqstp->rq_res, sizeof(req->rq_snd_buf)); task = rpc_run_bc_task(req); -- GitLab