Skip to content

Commit cbb70e4

Browse files
lorenzo-stoakesakpm00
authored andcommitted
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 <lorenzo.stoakes@oracle.com> Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com> Reviewed-by: Wei Yang <richard.weiyang@gmail.com> Cc: Jann Horn <jannh@google.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 249608e commit cbb70e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/vma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct mmap_state {
3535
.mm = mm_, \
3636
.vmi = vmi_, \
3737
.addr = addr_, \
38-
.end = (addr_) + len, \
38+
.end = (addr_) + (len_), \
3939
.pgoff = pgoff_, \
4040
.pglen = PHYS_PFN(len_), \
4141
.flags = flags_, \

0 commit comments

Comments
 (0)