* [dpdk-stable] [PATCH 01/11] net/sfc/base: make last byte of module information available
[not found] <1537797030-26548-1-git-send-email-arybchenko@solarflare.com>
@ 2018-09-24 13:50 ` Andrew Rybchenko
0 siblings, 0 replies; only message in thread
From: Andrew Rybchenko @ 2018-09-24 13:50 UTC (permalink / raw)
To: dev; +Cc: Richard Houldsworth, stable
From: Richard Houldsworth <rhouldsworth@solarflare.com>
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 <rhouldsworth@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
drivers/net/sfc/base/efx_phy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/sfc/base/efx_phy.c b/drivers/net/sfc/base/efx_phy.c
index 25059dfe1..e78d6efcb 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;
}
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-24 13:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1537797030-26548-1-git-send-email-arybchenko@solarflare.com>
2018-09-24 13:50 ` [dpdk-stable] [PATCH 01/11] net/sfc/base: make last byte of module information available Andrew Rybchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).