Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 324146f8 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm/madvise: remove racy mm ownership check"

parents 4f0abb74 475c63f7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1280,8 +1280,7 @@ SYSCALL_DEFINE6(process_madvise, int, which, pid_t, upid,
		goto put_pid;
	}

	if (task->mm != current->mm &&
			!process_madvise_behavior_valid(behavior)) {
	if (!process_madvise_behavior_valid(behavior)) {
		ret = -EINVAL;
		goto release_task;
	}