Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2018 10:16:35 +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-12@freebsd.org
Subject:   svn commit: r341855 - stable/12/sys/ofed/drivers/infiniband/core
Message-ID:  <201812121016.wBCAGZh8008050@repo.freebsd.org>

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

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

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

Modified: stable/12/sys/ofed/drivers/infiniband/core/ib_verbs.c
==============================================================================
--- stable/12/sys/ofed/drivers/infiniband/core/ib_verbs.c	Wed Dec 12 10:14:52 2018	(r341854)
+++ stable/12/sys/ofed/drivers/infiniband/core/ib_verbs.c	Wed Dec 12 10:16:35 2018	(r341855)
@@ -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?201812121016.wBCAGZh8008050>