diff --git a/mm/cma.c b/mm/cma.c index 4a978e09547a..30b6ca30009b 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -500,7 +500,7 @@ struct page *cma_alloc(struct cma *cma, unsigned long count, */ if (page) { for (i = 0; i < count; i++) - page_kasan_tag_reset(page + i); + page_kasan_tag_reset(nth_page(page, i)); } if (ret && !no_warn) {