Commit b3c78286 authored by Takashi Iwai's avatar Takashi Iwai Committed by Miquel Raynal
Browse files

mtd: phram: Add the kernel lock down check



The phram MTD driver may map any memory pages no matter whether it's
reserved or whatever used for systems, which basically allows user
bypassing the lock down.

Add the check and abort the probe if the kernel is locked down for
LOCKDOWN_DEV_MEM.

Reported-by: default avatarFabian Vogt <fvogt@suse.com>
Suggested-by: default avatarFabian Vogt <fvogt@suse.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Acked-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 78a56df6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment