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: [email protected]
> 
> Signed-off-by: Marcel Telka <[email protected]>
> ---
>  drivers/net/intel/ice/ice_ethdev.c | 11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)
> 
Acked-by: Bruce Richardson <[email protected]>

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

Reply via email to