aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorJean Delvare <[email protected]>2024-02-14 15:59:39 +0100
committerAndi Shyti <[email protected]>2024-02-14 22:15:38 +0100
commitc1c9d0f6f7f1dbf29db996bd8e166242843a5f21 (patch)
tree0d53b56f176b749a872b5baa3e37842803eda60b /lib/test_fortify/write_overflow-strncpy-src.c
parentf44bff19268517ee98e80e944cad0f04f1db72e3 (diff)
i2c: i801: Fix block process call transactions
According to the Intel datasheets, software must reset the block buffer index twice for block process call transactions: once before writing the outgoing data to the buffer, and once again before reading the incoming data from the buffer. The driver is currently missing the second reset, causing the wrong portion of the block buffer to be read. Signed-off-by: Jean Delvare <[email protected]> Reported-by: Piotr Zakowski <[email protected]> Closes: https://lore.kernel.org/linux-i2c/[email protected]/ Fixes: 315cd67c9453 ("i2c: i801: Add Block Write-Block Read Process Call support") Reviewed-by: Alexander Sverdlin <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions