diff --git a/mm/cma.c b/mm/cma.c index a972c3440c40..26967c70e9c7 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -503,7 +503,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) {