mm/mmap: Fix VM_LOCKED check in do_vmi_align_munmap()
authorSuren Baghdasaryan <surenb@google.com>
Tue, 11 Jul 2023 00:46:32 +0000 (17:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:21:46 +0000 (16:21 +0200)
commite0d7a96b278abe69c207615c2639ab8bb11ba321
tree844f846a1140f08de24da07d1c0f76295f699f6c
parentb91748bdbfb10673bc128179eb71cf66cb9641c4
mm/mmap: Fix VM_LOCKED check in do_vmi_align_munmap()

6.1 backport of the patch [1] uses 'next' vma instead of 'split' vma.
Fix the mistake.

[1] commit 606c812eb1d5 ("mm/mmap: Fix error path in do_vmi_align_munmap()")

Fixes: a149174ff8bb ("mm/mmap: Fix error path in do_vmi_align_munmap()")
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/mmap.c