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

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

Merge "arm64: mm: Do not perform address checks if FORCE_PAGES is enabled"

parents 07114595 2a9128c1
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -51,8 +51,10 @@ static int change_memory_common(unsigned long addr, int numpages,
		WARN_ON_ONCE(1);
	}

	if (!IS_ENABLED(CONFIG_FORCE_PAGES)) {
		if (!is_module_address(start) || !is_module_address(end - 1))
			return -EINVAL;
	}

	data.set_mask = set_mask;
	data.clear_mask = clear_mask;