Skip to content

Commit 997d30c

Browse files
andy-shevrichardweinberger
authored andcommitted
ubi: Make mtd parameter readable
Fix permissions to allow read mtd parameter back (only for owner). Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 435009d commit 997d30c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/ubi/build.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ static int ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
14701470
return 0;
14711471
}
14721472

1473-
module_param_call(mtd, ubi_mtd_param_parse, NULL, NULL, 000);
1473+
module_param_call(mtd, ubi_mtd_param_parse, NULL, NULL, 0400);
14741474
MODULE_PARM_DESC(mtd, "MTD devices to attach. Parameter format: mtd=<name|num|path>[,<vid_hdr_offs>[,max_beb_per1024[,ubi_num]]].\n"
14751475
"Multiple \"mtd\" parameters may be specified.\n"
14761476
"MTD devices may be specified by their number, name, or path to the MTD character device node.\n"

0 commit comments

Comments
 (0)