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

Commit 615adc7b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "arm64: Don't use is_module_addr in setting page attributes"

parents 5a67854e ddf8034f
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -52,7 +52,10 @@ static int change_memory_common(unsigned long addr, int numpages,
	}
	}


	if (!IS_ENABLED(CONFIG_FORCE_PAGES)) {
	if (!IS_ENABLED(CONFIG_FORCE_PAGES)) {
		if (!is_module_address(start) || !is_module_address(end - 1))
		if (start < MODULES_VADDR || start >= MODULES_END)
			return -EINVAL;

		if (end < MODULES_VADDR || end >= MODULES_END)
			return -EINVAL;
			return -EINVAL;
	}
	}