Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[202311] [optoe] Fix optoe's write_max when using native i2c driver #409

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

mihirpat1
Copy link
Contributor

202311 Cherry-pick for #407

Optoe driver with write-max > 1 when using the i2c message buffer was allocating only 3(1+2) bytes which means while copying the user data for i2c adapters supporting the native i2c functions will overwrite the message buffer size. This will not happen for i2c adapters that does not support native i2c functions like pure SMBUS controller.

@mihirpat1 mihirpat1 marked this pull request as ready for review June 19, 2024 04:56
@mihirpat1 mihirpat1 requested a review from a team as a code owner June 19, 2024 04:56
@prgeor prgeor merged commit a02f738 into sonic-net:202311 Jun 19, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants