aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorSteve Wilkins <[email protected]>2024-07-15 12:13:56 +0100
committerMark Brown <[email protected]>2024-07-15 19:08:19 +0100
commit9cf71eb0faef4bff01df4264841b8465382d7927 (patch)
tree3aa695bdfede52d66d8f9b07854b4c5a2da0987e /lib/test_fortify/write_overflow-strncpy-src.c
parent3a5e76283672efddf47cea39ccfe9f5735cc91d5 (diff)
spi: microchip-core: ensure TX and RX FIFOs are empty at start of a transfer
While transmitting with rx_len == 0, the RX FIFO is not going to be emptied in the interrupt handler. A subsequent transfer could then read crap from the previous transfer out of the RX FIFO into the start RX buffer. The core provides a register that will empty the RX and TX FIFOs, so do that before each transfer. Fixes: 9ac8d17694b6 ("spi: add support for microchip fpga spi controllers") Signed-off-by: Steve Wilkins <[email protected]> Signed-off-by: Conor Dooley <[email protected]> Link: https://patch.msgid.link/20240715-flammable-provoke-459226d08e70@wendy Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions