diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-29 09:34:32 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-29 09:34:32 -0700 |
commit | 928c0c1571b004917a989c4d92b09ac129ad68b2 (patch) | |
tree | c34d8424063f2f7e4ead52b67c24ac4fc2c42cdb /kernel | |
parent | c4fd675f584a17bd8ceb4fcbf29af12be7ac2a57 (diff) | |
download | op-kernel-dev-928c0c1571b004917a989c4d92b09ac129ad68b2.zip op-kernel-dev-928c0c1571b004917a989c4d92b09ac129ad68b2.tar.gz |
rtmutex-tester: fix mode of sysfs files
This properly sets the modes of the sysfs files.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Clark Williams <williams@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rtmutex-tester.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rtmutex-tester.c b/kernel/rtmutex-tester.c index 7890b10..55ad765 100644 --- a/kernel/rtmutex-tester.c +++ b/kernel/rtmutex-tester.c @@ -366,8 +366,8 @@ static ssize_t sysfs_test_status(struct device *dev, struct device_attribute *at return curr - buf; } -static DEVICE_ATTR(status, 0600, sysfs_test_status, NULL); -static DEVICE_ATTR(command, 0600, NULL, sysfs_test_command); +static DEVICE_ATTR(status, 0400, sysfs_test_status, NULL); +static DEVICE_ATTR(command, 0200, NULL, sysfs_test_command); static struct bus_type rttest_subsys = { .name = "rttest", |