[PATCH v3] net/ice: fix trailing bytes drop in get_module_eeprom()

Bruce Richardson bruce.richardson at intel.com
Fri Nov 13 17:28:48 CET 2026


On Fri, Nov 13, 2026 at 11:53:18AM +0100, Marcel Telka wrote:
> When info->length is not an exact multiple of SFF_READ_BLOCK_SIZE (8),
> the final loop iteration reads the correct 8 bytes from the module into
> value[], but the guard evaluates false, so the memcpy is skipped
> entirely. Since the destination buffer is memset to 0 at function entry,
> the trailing length % 8 bytes are silently returned as zero instead of
> the real EEPROM content, with no error indication to the caller.
> 
> Bugzilla ID: 2091
> Fixes: 52569256583a ("net/ice: support module EEPROM")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Marcel Telka <marcel at telka.sk>
> ---
>  drivers/net/intel/ice/ice_ethdev.c | 11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)
> 
Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Applied to dpdk-next-net-intel.
Thanks,
/Bruce


More information about the dev mailing list