Commit 523e00ec authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

ANDROID: mm: fix locking in do_madvise() when CONFIG_MEMORY_FAILURE=y



Backport of 4cc39f91 leaves madvise_lock
lockedin one of the paths with CONFIG_MEMORY_FAILURE=y. Fix by dropping
the lock before returning.

Fixes: 87cddfad ("BACKPORT: mm/madvise: split out mmap locking operations for madvise()")
Bug: 425827225
Reported-by: default avataryipeng xiang <yipengxiang@honor.corp-partner.google.com>
Change-Id: I41899e3a95e62be5ec8638a9ea8bc3c7e3da529f
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
parent 67c79593
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment