mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
Align the end size to cache boundary size in ax45mp_dma_cache_wback()
callback likewise done in ax45mp_dma_cache_inv() callback.
Additionally return early in case of start == end.
Fixes: d34599bcd2 ("cache: Add L2 cache management for Andes AX45MP RISC-V core")
Reported-by: Pavel Machek <[email protected]>
Link: https://lore.kernel.org/cip-dev/[email protected]/
Signed-off-by: Lad Prabhakar <[email protected]>
Signed-off-by: Conor Dooley <[email protected]>