mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 02:36:02 +00:00
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>
This commit is contained in:
parent
249608ee47
commit
cbb70e4534
2
mm/vma.c
2
mm/vma.c
@ -35,7 +35,7 @@ struct mmap_state {
|
|||||||
.mm = mm_, \
|
.mm = mm_, \
|
||||||
.vmi = vmi_, \
|
.vmi = vmi_, \
|
||||||
.addr = addr_, \
|
.addr = addr_, \
|
||||||
.end = (addr_) + len, \
|
.end = (addr_) + (len_), \
|
||||||
.pgoff = pgoff_, \
|
.pgoff = pgoff_, \
|
||||||
.pglen = PHYS_PFN(len_), \
|
.pglen = PHYS_PFN(len_), \
|
||||||
.flags = flags_, \
|
.flags = flags_, \
|
||||||
|
Loading…
Reference in New Issue
Block a user