From 4f909b86c8f2864199571adb529c62ec1138be17 Mon Sep 17 00:00:00 2001 From: Giuseppe Di Natale Date: Fri, 4 Sep 2015 08:16:12 -0700 Subject: [PATCH] LU-7076 ptlrpc: Unitialized rc in ptlrpc_server_hpreq_init 'rc' was not initialized and could potentially not be set. The return code is used to determine the priority of the rpc call. Assume normal priority (rc = 0) to begin with. Signed-off-by: Giuseppe Di Natale Change-Id: Iff4a4b8bf78151cbd1e3b7218da7551b2039838a Reviewed-on: http://review.whamcloud.com/16327 Reviewed-by: Dmitry Eremin Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/ptlrpc/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ptlrpc/service.c b/lustre/ptlrpc/service.c index ba6272a..3ef0214 100644 --- a/lustre/ptlrpc/service.c +++ b/lustre/ptlrpc/service.c @@ -1567,7 +1567,7 @@ found: static int ptlrpc_server_hpreq_init(struct ptlrpc_service_part *svcpt, struct ptlrpc_request *req) { - int rc; + int rc = 0; ENTRY; if (svcpt->scp_service->srv_ops.so_hpreq_handler != NULL) { -- 1.8.3.1