svn commit: r342338 - stable/12/sys/dev/sfxge/common

Andrew Rybchenko arybchik at FreeBSD.org
Fri Dec 21 16:27:38 UTC 2018


Author: arybchik
Date: Fri Dec 21 16:27:37 2018
New Revision: 342338
URL: https://svnweb.freebsd.org/changeset/base/342338

Log:
  MFC r341301
  
  sfxge(4): prevent access to the NIC config before probe
  
  NIC config is initialized during NIC probe.
  
  Submitted by:   Mark Spender <mspender at solarflare.com>
  Sponsored by:   Solarflare Communications, Inc.
  Differential Revision:  https://reviews.freebsd.org/D18263

Modified:
  stable/12/sys/dev/sfxge/common/efx_nic.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/sfxge/common/efx_nic.c
==============================================================================
--- stable/12/sys/dev/sfxge/common/efx_nic.c	Fri Dec 21 16:26:18 2018	(r342337)
+++ stable/12/sys/dev/sfxge/common/efx_nic.c	Fri Dec 21 16:27:37 2018	(r342338)
@@ -543,6 +543,7 @@ efx_nic_cfg_get(
 	__in		efx_nic_t *enp)
 {
 	EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
+	EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
 
 	return (&(enp->en_nic_cfg));
 }


More information about the svn-src-all mailing list