From: Lorenzo Stoakes Date: Mon, 18 Nov 2024 17:54:14 +0000 (+0000) Subject: mm: correct typo in MMAP_STATE() macro X-Git-Tag: v6.13-rc2~5^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cbb70e45348769172cb24cca2d2b6437f4c9240b;p=thirdparty%2Fkernel%2Flinux.git mm: correct typo in MMAP_STATE() macro We mistakenly refer to len rather than len_ here. The only existing caller passes len to the len_ parameter so this has no impact on the code, but it is obviously incorrect to do this, so fix it. Link: https://lkml.kernel.org/r/20241118175414.390827-1-lorenzo.stoakes@oracle.com Signed-off-by: Lorenzo Stoakes Reviewed-by: Liam R. Howlett Reviewed-by: Wei Yang Cc: Jann Horn Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- diff --git a/mm/vma.c b/mm/vma.c index 8a454a7bbc80b..8e31b7e25aeb1 100644 --- a/mm/vma.c +++ b/mm/vma.c @@ -35,7 +35,7 @@ struct mmap_state { .mm = mm_, \ .vmi = vmi_, \ .addr = addr_, \ - .end = (addr_) + len, \ + .end = (addr_) + (len_), \ .pgoff = pgoff_, \ .pglen = PHYS_PFN(len_), \ .flags = flags_, \