Fix optoe's write_max when using native i2c driver
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.
@bingwang-ms please include this fix in 202405
@StormLiangMS please include this fix in 202311
@lguohan please review/merge. thanks.
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
Cherry-pick PR to 202411: https://github.com/sonic-net/sonic-linux-kernel/pull/456
thanks Mihir and this one is already merged with 202411 -> 202412 code sync: https://github.com/Azure/sonic-linux-kernel.msft/commit/f3f9a37715f8c2e4ed9821547585c3bbb2612619