Date: Fri, 21 Dec 2018 16:30:22 +0000 (UTC) From: Andrew Rybchenko <arybchik@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: r342341 - stable/12/sys/dev/sfxge/common Message-ID: <201812211630.wBLGUMaM080667@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: arybchik Date: Fri Dec 21 16:30:21 2018 New Revision: 342341 URL: https://svnweb.freebsd.org/changeset/base/342341 Log: MFC r341311 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. Differential Revision: https://reviews.freebsd.org/D18273 Modified: stable/12/sys/dev/sfxge/common/efx_phy.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/dev/sfxge/common/efx_phy.c ============================================================================== --- stable/12/sys/dev/sfxge/common/efx_phy.c Fri Dec 21 16:29:31 2018 (r342340) +++ stable/12/sys/dev/sfxge/common/efx_phy.c Fri Dec 21 16:30:21 2018 (r342341) @@ -314,7 +314,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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812211630.wBLGUMaM080667>