diff options
| author | Henry Zhang <henryzhang62@gmail.com> | 2026-10-28 09:45:26 -0700 |
|---|---|---|
| committer | Maíra Canal <mcanal@igalia.com> | 2026-11-18 11:26:38 -0300 |
| commit | 80ac6d197218c3399d66674167a4d7c9051a25e2 (patch) | |
| tree | 54b3a1a3eac6510a977a0941d09c0138c22562d0 /rust/kernel/alloc | |
| parent | db9a489077cbe9217b7bc2b47ebf0fabc5f1a56f (diff) | |
drm/vc4: dsi: Set the transfer result before completing the transfer
On an HSTX timeout the interrupt handler completes the transfer and
only then sets xfer_result to -ETIMEDOUT. The waiter, which may run on
another CPU, can wake up and read xfer_result in between, still 0 from
the start of the transfer, and report the timed-out transfer as a
success.
Set xfer_result first. complete() orders the store before the wake-up.
Fixes: 4078f5757144 ("drm/vc4: Add DSI driver")
Signed-off-by: Henry Zhang <henryzhang62@gmail.com>
Link: https://patch.msgid.link/20261028164539.3471833-2-henryzhang62@gmail.com
Reviewed-by: Maíra Canal <mcanal@igalia.com>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
