sonic-linux-kernel icon indicating copy to clipboard operation
sonic-linux-kernel copied to clipboard

Fix optoe's write_max when using native i2c driver

Open prgeor opened this issue 1 year ago • 3 comments

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.

prgeor avatar Jun 18 '24 14:06 prgeor

@bingwang-ms please include this fix in 202405

prgeor avatar Jun 18 '24 14:06 prgeor

@StormLiangMS please include this fix in 202311

prgeor avatar Jun 18 '24 14:06 prgeor

@lguohan please review/merge. thanks.

prgeor avatar Jun 18 '24 14:06 prgeor

/azp run

mssonicbld avatar Jan 13 '25 17:01 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 13 '25 17:01 azure-pipelines[bot]

Cherry-pick PR to 202411: https://github.com/sonic-net/sonic-linux-kernel/pull/456

mssonicbld avatar Jan 13 '25 22:01 mssonicbld

thanks Mihir and this one is already merged with 202411 -> 202412 code sync: https://github.com/Azure/sonic-linux-kernel.msft/commit/f3f9a37715f8c2e4ed9821547585c3bbb2612619

r12f avatar Jan 28 '25 05:01 r12f