Skip to content
Snippets Groups Projects
Commit 612a766c authored by Benoit Rat's avatar Benoit Rat
Browse files

userspace: correct a bad i2c_buses array size check

parent 679a7fe9
Branches
Tags
No related merge requests found
......@@ -202,7 +202,7 @@ int shw_sfp_bus_scan(int num, uint8_t *dev_map)
int i;
int detect;
if (num < 0 || num > ARRAY_SIZE(i2c_buses))
if (num < 0 || num >= ARRAY_SIZE(i2c_buses))
return -1;
if (i2c_buses[num].err)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment