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/[email protected] Signed-off-by: Lorenzo Stoakes <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Reviewed-by: Wei Yang <[email protected]> Cc: Jann Horn <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
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)