Files
linux/drivers/spi
Breno Leitao ef13ba3576 spi: tegra210-quad: Move curr_xfer read inside spinlock
Move the assignment of the transfer pointer from curr_xfer inside the
spinlock critical section in both handle_cpu_based_xfer() and
handle_dma_based_xfer().

Previously, curr_xfer was read before acquiring the lock, creating a
window where the timeout path could clear curr_xfer between reading it
and using it. By moving the read inside the lock, the handlers are
guaranteed to see a consistent value that cannot be modified by the
timeout path.

Fixes: 921fc1838f ("spi: tegra210-quad: Add support for Tegra210 QSPI controller")
Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Thierry Reding <treding@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20260126-tegra_xfer-v2-2-6d2115e4f387@debian.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2026-01-30 13:53:13 +00:00
..
2024-10-07 14:53:15 +01:00
2025-10-13 11:27:36 +01:00
2025-10-13 11:27:36 +01:00
2025-02-03 19:24:44 +00:00
2025-10-27 11:10:50 +00:00
2024-09-30 01:12:21 +02:00
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2025-09-08 16:22:15 +01:00
2024-09-30 22:43:40 +01:00
2025-07-07 16:12:21 +01:00
2024-10-07 14:53:15 +01:00
2025-09-22 09:29:30 +01:00