Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2018 10:17:36 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r341856 - stable/11/sys/ofed/drivers/infiniband/core
Message-ID:  <201812121017.wBCAHafT008153@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Dec 12 10:17:36 2018
New Revision: 341856
URL: https://svnweb.freebsd.org/changeset/base/341856

Log:
  MFC r341521:
  ibcore: Make sure GID index variable gets initialized.
  
  Sponsored by:   Mellanox Technologies

Modified:
  stable/11/sys/ofed/drivers/infiniband/core/ib_verbs.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/ofed/drivers/infiniband/core/ib_verbs.c
==============================================================================
--- stable/11/sys/ofed/drivers/infiniband/core/ib_verbs.c	Wed Dec 12 10:16:35 2018	(r341855)
+++ stable/11/sys/ofed/drivers/infiniband/core/ib_verbs.c	Wed Dec 12 10:17:36 2018	(r341856)
@@ -458,7 +458,7 @@ int ib_init_ah_from_wc(struct ib_device *device, u8 po
 		       struct ib_ah_attr *ah_attr)
 {
 	u32 flow_class;
-	u16 gid_index;
+	u16 gid_index = 0;
 	int ret;
 	enum rdma_network_type net_type = RDMA_NETWORK_IB;
 	enum ib_gid_type gid_type = IB_GID_TYPE_IB;
@@ -524,8 +524,6 @@ int ib_init_ah_from_wc(struct ib_device *device, u8 po
 								 &gid_index);
 				if (ret)
 					return ret;
-			} else {
-				gid_index = 0;
 			}
 		}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812121017.wBCAHafT008153>