svn commit: r341311 - head/sys/dev/sfxge/common

Andrew Rybchenko arybchik at FreeBSD.org
Fri Nov 30 07:08:18 UTC 2018


Author: arybchik
Date: Fri Nov 30 07:08:16 2018
New Revision: 341311
URL: https://svnweb.freebsd.org/changeset/base/341311

Log:
  sfxge(4): make last byte of module information available
  
  Adjust bounds so the interface supports reading
  the last available byte of data.
  
  Submitted by:   Richard Houldsworth <rhouldsworth at solarflare.com>
  Sponsored by:   Solarflare Communications, Inc.
  MFC after:      1 week
  Differential Revision:  https://reviews.freebsd.org/D18273

Modified:
  head/sys/dev/sfxge/common/efx_phy.c

Modified: head/sys/dev/sfxge/common/efx_phy.c
==============================================================================
--- head/sys/dev/sfxge/common/efx_phy.c	Fri Nov 30 07:08:05 2018	(r341310)
+++ head/sys/dev/sfxge/common/efx_phy.c	Fri Nov 30 07:08:16 2018	(r341311)
@@ -326,7 +326,7 @@ efx_phy_module_get_info(
 	EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
 	EFSYS_ASSERT(data != NULL);
 
-	if ((uint32_t)offset + len > 0xff) {
+	if ((uint32_t)offset + len > 0x100) {
 		rc = EINVAL;
 		goto fail1;
 	}


More information about the svn-src-all mailing list