mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
UPSTREAM: mm/memory.c: fix mismerge
Fix a build issue.
Link: https://lkml.kernel.org/r/ZNerqcNS4EBJA/2v@casper.infradead.org
Fixes: 4aaa60dad4d1 ("mm: allow per-VMA locks on file-backed VMAs")
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308121909.XNYBtqNI-lkp@intel.com/
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
(cherry picked from commit 08dff2810e)
Bug: 293665307
Change-Id: I07ce19f29c44831cdcf709fe1ce122d1963f0be2
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
This commit is contained in:
committed by
Suren Baghdasaryan
parent
7d50253c27
commit
9c4bc457ab
@@ -5514,7 +5514,7 @@ retry:
|
||||
* concurrent mremap() with MREMAP_DONTUNMAP could dissociate the VMA
|
||||
* from its anon_vma.
|
||||
*/
|
||||
if (unlikely(!vma->anon_vma))
|
||||
if (vma_is_anonymous(vma) && !vma->anon_vma)
|
||||
goto inval_end_read;
|
||||
|
||||
/* Check since vm_start/vm_end might change before we lock the VMA */
|
||||
|
||||
Reference in New Issue
Block a user