From: Vasily Averin Date: Mon, 24 Dec 2018 11:46:08 +0000 (+0300) Subject: sunrpc: make visible processing error in bc_svc_process() X-Git-Tag: v5.4-rc1~1888^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f7766c805d27a56e37cf7e108c2208649b44569;p=platform%2Fkernel%2Flinux-rpi.git sunrpc: make visible processing error in bc_svc_process() Force bc_svc_process() to generate debug message after processing errors Signed-off-by: Vasily Averin Signed-off-by: J. Bruce Fields --- diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 1e6701c..e87ddb9 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -1511,9 +1511,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);