X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=mm%2Fcma.c;h=2b2494fd6b59a6832b16c83b06ce2d6d454a66de;hb=4df7c5fde316820286dfa6d203a1005d7fbe007d;hp=da2967c6a22389a59fbe40c3698fdd6884276419;hpb=7cf4bea77ab60742c128c2ceb4b1b8078887b823;p=linux-2.6-microblaze.git diff --git a/mm/cma.c b/mm/cma.c index da2967c6a223..2b2494fd6b59 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -505,7 +505,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) {