Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
612a766c
Commit
612a766c
authored
Jan 25, 2013
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace: correct a bad i2c_buses array size check
parent
679a7fe9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
i2c_sfp.c
userspace/libswitchhw/i2c_sfp.c
+1
-1
No files found.
userspace/libswitchhw/i2c_sfp.c
View file @
612a766c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment