diff options
author | 2018-05-16 00:00:18 -0700 | |
---|---|---|
committer | 2018-05-22 14:06:34 +0200 | |
commit | 88b4116e7e98454c2131094336e4f8861eebbd85 (patch) | |
tree | 639eed4ee889c536ec063ae06bc76ca78948d6f9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | i2c: xlp9xx: Fix issue seen when updating receive length (diff) | |
download | linux-dev-88b4116e7e98454c2131094336e4f8861eebbd85.tar.xz linux-dev-88b4116e7e98454c2131094336e4f8861eebbd85.zip |
i2c: xlp9xx: Make sure the transfer size is not more than I2C_SMBUS_BLOCK_SIZE
For SMBus transactions the max permissible transfer size is
I2C_SMBUS_BLOCK_SIZE. It is possible that some clients might
not follow it strictly occasionally.
This would lead to stack corruption if the driver copies more than
I2C_SMBUS_BLOCK_SIZE bytes. Add a check to avoid such conditions.
Signed-off-by: Jayachandran C <jnair@caviumnetworks.com>
Signed-off-by: George Cherian <george.cherian@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions