Whamcloud - gitweb
LU-7076 ptlrpc: Unitialized rc in ptlrpc_server_hpreq_init 27/16327/2
authorGiuseppe Di Natale <dinatale2@llnl.gov>
Fri, 4 Sep 2015 15:16:12 +0000 (08:16 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 24 Sep 2015 17:59:03 +0000 (17:59 +0000)
'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 <dinatale2@llnl.gov>
Change-Id: Iff4a4b8bf78151cbd1e3b7218da7551b2039838a
Reviewed-on: http://review.whamcloud.com/16327
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/service.c

index ba6272a..3ef0214 100644 (file)
@@ -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) {