From: Richard Houldsworth Date: Mon, 24 Sep 2018 13:50:20 +0000 (+0100) Subject: net/sfc/base: make last byte of module information available X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7624c9442df3b87aac77c6923b59740299866c43;p=dpdk.git net/sfc/base: make last byte of module information available Adjust bounds so the interface supports reading the last available byte of data. Fixes: 19b64c6ac35f ("net/sfc/base: import libefx base") Cc: stable@dpdk.org Signed-off-by: Richard Houldsworth Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/base/efx_phy.c b/drivers/net/sfc/base/efx_phy.c index 25059dfe12..e78d6efcbb 100644 --- a/drivers/net/sfc/base/efx_phy.c +++ b/drivers/net/sfc/base/efx_phy.c @@ -297,7 +297,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; }