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

Commit 1f40a8bf authored by Pavel Machek's avatar Pavel Machek Committed by Ingo Molnar
Browse files

x86/mm/pat: Ensure different messages in STRICT_DEVMEM and PAT cases



STRICT_DEVMEM and PAT produce same failure accessing /dev/mem,
which is quite confusing to the user. Make printk messages
different to lessen confusion.

Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 1db491f7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -628,7 +628,7 @@ static inline int range_is_allowed(unsigned long pfn, unsigned long size)

	while (cursor < to) {
		if (!devmem_is_allowed(pfn)) {
			printk(KERN_INFO "Program %s tried to access /dev/mem between [mem %#010Lx-%#010Lx]\n",
			printk(KERN_INFO "Program %s tried to access /dev/mem between [mem %#010Lx-%#010Lx], PAT prevents it\n",
			       current->comm, from, to - 1);
			return 0;
		}