Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86, pmem: Fix cache flushing for iovec write < 8 bytes
commit 8376efd upstream. Commit 11e63f6 added cache flushing for unaligned writes from an iovec, covering the first and last cache line of a >= 8 byte write and the first cache line of a < 8 byte write. But an unaligned write of 2-7 bytes can still cover two cache lines, so make sure we flush both in that case. Fixes: 11e63f6 ("x86, pmem: fix broken __copy_user_nocache ...") Signed-off-by: Ben Hutchings <[email protected]> Signed-off-by: Dan Williams <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information