svn commit: r342446 - stable/11/sys/dev/sfxge/common
Andrew Rybchenko
arybchik at FreeBSD.org
Tue Dec 25 07:30:18 UTC 2018
Author: arybchik
Date: Tue Dec 25 07:30:17 2018
New Revision: 342446
URL: https://svnweb.freebsd.org/changeset/base/342446
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/11/sys/dev/sfxge/common/efx_nic.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/sfxge/common/efx_nic.c
==============================================================================
--- stable/11/sys/dev/sfxge/common/efx_nic.c Tue Dec 25 07:27:45 2018 (r342445)
+++ stable/11/sys/dev/sfxge/common/efx_nic.c Tue Dec 25 07:30:17 2018 (r342446)
@@ -541,6 +541,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-stable-11
mailing list