Skip to content

Commit

Permalink
rtmutex-tester: fix mode of sysfs files
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Mar 29, 2013
1 parent c4fd675 commit 928c0c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/rtmutex-tester.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 928c0c1

Please sign in to comment.