Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753856AbcL3L0k (ORCPT ); Fri, 30 Dec 2016 06:26:40 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33808 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753774AbcL3L0i (ORCPT ); Fri, 30 Dec 2016 06:26:38 -0500 From: Cheah Kok Cheong To: abbotti@mev.co.uk, hsweeten@visionengravers.com, gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Cheah Kok Cheong Subject: [PATCH 2/5] Staging: comedi: proc: Change file permission to read only Date: Fri, 30 Dec 2016 19:26:24 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 747 Lines: 24 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 --- drivers/staging/comedi/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/proc.c b/drivers/staging/comedi/proc.c index 91dea25..3513f4c 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) -- 2.7.4