Skip to content
Commit 30ac0b49 authored by Stefan Agner's avatar Stefan Agner Committed by Tom Rini
Browse files

nvme: invalidate correct memory range after read



The current code invalidates the range after the read buffer since the
buffer pointer gets incremented in the read loop. Use a temporary
pointer to make sure we have a pristine pointer to invalidate the
correct memory range after read.

Fixes: 704e040a ("nvme: Apply cache operations on the DMA buffers")
Reviewed-by: default avatarAndre Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
parent 2c6bcab6
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment