Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2019 18:02:37 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354737 - head/sys/dev/cxgbe
Message-ID:  <201911151802.xAFI2bTp071057@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Fri Nov 15 18:02:37 2019
New Revision: 354737
URL: https://svnweb.freebsd.org/changeset/base/354737

Log:
  Fix regression from r353841: ctx.rc needs to be initialized,
  otherwise driver might silently fail to initialize.
  
  Pointy hat to:	glebius

Modified:
  head/sys/dev/cxgbe/t4_main.c

Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c	Fri Nov 15 16:43:36 2019	(r354736)
+++ head/sys/dev/cxgbe/t4_main.c	Fri Nov 15 18:02:37 2019	(r354737)
@@ -4998,6 +4998,7 @@ update_mac_settings(struct ifnet *ifp, int flags)
 		ctx.hash = 0;
 		ctx.i = 0;
 		ctx.del = 1;
+		ctx.rc = 0;
 		/*
 		 * Unlike other drivers, we accumulate list of pointers into
 		 * interface address lists and we need to keep it safe even



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