From: Giuseppe Di Natale Date: Fri, 4 Sep 2015 15:16:12 +0000 (-0700) Subject: LU-7076 ptlrpc: Unitialized rc in ptlrpc_server_hpreq_init X-Git-Tag: 2.7.61~21 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=4f909b86c8f2864199571adb529c62ec1138be17 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 --- 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) {