aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2024-07-08 20:05:28 -0500
committerMark Brown <[email protected]>2024-07-09 17:42:31 +0100
commitc86a918b1bdba78fb155184f8d88dfba1e63335d (patch)
tree6ae05673f983884441fac4c8bc2d2ad36bdfae70 /lib/test_fortify/write_overflow-memcpy.c
parent8221545c440b5f83f00b3e5a92bbc86bf268bad4 (diff)
spi: don't unoptimize message in spi_async()
Calling spi_maybe_unoptimize_message() in spi_async() is wrong because the message is likely to be in the queue and not transferred yet. This can corrupt the message while it is being used by the controller driver. spi_maybe_unoptimize_message() is already called in the correct place in spi_finalize_current_message() to balance the call to spi_maybe_optimize_message() in spi_async(). Fixes: 7b1d87af14d9 ("spi: add spi_optimize_message() APIs") Signed-off-by: David Lechner <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions