From: Cheah Kok Cheong Date: Fri, 30 Dec 2016 11:26:24 +0000 (+0800) Subject: Staging: comedi: proc: Change file permission to read only X-Git-Tag: v4.11-rc1~116^2~491 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5f52f319cd3f85bca9bf325f3505b3d76b82c644;p=karo-tx-linux.git Staging: comedi: proc: Change file permission to read only As there's no write operation, change to read only. Was inadvertantly switched to 0644 in commit 1f817b86d5e6 ("comedi: Don't use create_proc_read_entry()"). Signed-off-by: Cheah Kok Cheong Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/proc.c b/drivers/staging/comedi/proc.c index 91dea25b5724..3513f4c179b1 100644 --- a/drivers/staging/comedi/proc.c +++ b/drivers/staging/comedi/proc.c @@ -88,7 +88,7 @@ static const struct file_operations comedi_proc_fops = { void comedi_proc_init(void) { - proc_create("comedi", 0644, NULL, &comedi_proc_fops); + proc_create("comedi", 0444, NULL, &comedi_proc_fops); } void comedi_proc_cleanup(void)