Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753292Ab0F3CSG (ORCPT ); Tue, 29 Jun 2010 22:18:06 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:62611 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752203Ab0F3CSD (ORCPT ); Tue, 29 Jun 2010 22:18:03 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=OhlwscMlKhcKqfIVu/gqnpvm8uZUtaY/w7Lf7GLnqwf3gp0OQVoH7Z0XthUtGLEpZO ThEA8wlqB2qNSDMlZIWLjBqZyEVsHl/QbKPhrTFY9QZEy5gibM5//b2s9cai1f1YbgYk duNN6/R58skMZfEFNwl/faTmUiM6asfpOLv3o= Subject: [PATCH] acer-wmi: set permissions on interface file to S_IRUGO From: Axel Lin To: linux-kernel Cc: Carlos Corbacho , Matthew Garrett , Len Brown , Thomas Renninger , platform-driver-x86@vger.kernel.org Content-Type: text/plain Date: Wed, 30 Jun 2010 10:20:23 +0800 Message-Id: <1277864423.14363.1.camel@mola> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 947 Lines: 31 The interface file is not writable, thus set permissions to S_IRUGO. Signed-off-by: Axel Lin --- drivers/platform/x86/acer-wmi.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 1415d97..fe7c9e4 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -1084,8 +1084,7 @@ static ssize_t show_interface(struct device *dev, struct device_attribute *attr, } } -static DEVICE_ATTR(interface, S_IWUGO | S_IRUGO | S_IWUSR, - show_interface, NULL); +static DEVICE_ATTR(interface, S_IRUGO, show_interface, NULL); /* * debugfs functions -- 1.5.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/