diff options
author | Mark Brown <[email protected]> | 2023-07-12 12:16:40 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-07-17 06:15:15 +0100 |
commit | 0c9d2eb5e94792fe64019008a04d4df5e57625af (patch) | |
tree | 25172bb5c633d29db0690318a149f9c6216d3ae7 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | bc64734825c59e18a27ac266b07e14944c111fd8 (diff) |
regmap: Account for register length in SMBus I/O limits
The SMBus I2C buses have limits on the size of transfers they can do but
do not factor in the register length meaning we may try to do a transfer
longer than our length limit, the core will not take care of this.
Future changes will factor this out into the core but there are a number
of users that assume current behaviour so let's just do something
conservative here.
This does not take account padding bits but practically speaking these
are very rarely if ever used on I2C buses given that they generally run
slowly enough to mean there's no issue.
Cc: [email protected]
Signed-off-by: Mark Brown <[email protected]>
Reviewed-by: Xu Yilun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions