From: Zhaoyifeng Date: Wed, 21 Jun 2017 01:56:17 +0000 (+0800) Subject: drivers: rk_nand: modify write permissions for proc files X-Git-Tag: release-20171130_firefly~4^2~347 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=779bec37f5151621cfe8f8222d44055d7bce7eb2;p=firefly-linux-kernel-4.4.55.git drivers: rk_nand: modify write permissions for proc files modify "rknand" and "mtd" write permissions, read only. Change-Id: Ib5b35059c5f075b1bade4400e1bf846222ae9a49 Signed-off-by: Zhaoyifeng --- diff --git a/drivers/rk_nand/rk_nand_blk.c b/drivers/rk_nand/rk_nand_blk.c index f5bce81b9442..9ef3c6a58235 100644 --- a/drivers/rk_nand/rk_nand_blk.c +++ b/drivers/rk_nand/rk_nand_blk.c @@ -103,12 +103,12 @@ static int rknand_create_procfs(void) { struct proc_dir_entry *ent; - ent = proc_create_data("rknand", 0x666, NULL, &rknand_proc_fops, + ent = proc_create_data("rknand", 0444, NULL, &rknand_proc_fops, (void *)0); if (!ent) return -1; - ent = proc_create_data("mtd", 0x666, NULL, &rknand_mtd_proc_fops, + ent = proc_create_data("mtd", 0444, NULL, &rknand_mtd_proc_fops, (void *)0); if (!ent) return -1;