]> git.baikalelectronics.ru Git - uboot.git/commit
nvme: invalidate correct memory range after read
authorStefan Agner <stefan@agner.ch>
Mon, 4 Oct 2021 09:24:51 +0000 (11:24 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 12 Oct 2021 20:49:21 +0000 (16:49 -0400)
commitb85ea556da9c0d96e17311cf37edd73a8b5c1b9a
treed78ee5a5191925fea04c293bfcfb4f9ce47b8929
parentd416c086673ba401e3fe204bbb5eb709943563a3
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: ebc9dcf7e858 ("nvme: Apply cache operations on the DMA buffers")
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/nvme/nvme.c