lkml.org 
[lkml]   [2024]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [net-next PatchV2] octeontx2-pf: Add support to read eeprom information
On Thu, 22 Feb 2024 22:45:42 +0530 Hariprasad Kelam wrote:
> + if (!ee->len || ((ee->len + ee->offset) > SFP_EEPROM_SIZE))
> + return -EINVAL;

Are you sure there's a path thru the core to the driver which would
allow len == 0 or the size being larger than when info put in
eeprom_len?
--
pw-bot: cr

\
 
 \ /
  Last update: 2024-05-27 15:24    [W:0.050 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site