mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
locking/rtmutex/tester: Set correct permissions on sysfs files
sysfs started complaining about cases where permissions don't match what's in the sysfs ops structure (such as allowing read without a "show" callback). Signed-off-by: Sasha Levin <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
bfaf4af8ab
commit
8184004ed7
1 changed files with 3 additions and 2 deletions
|
|
@ -14,6 +14,7 @@
|
|||
#include <linux/spinlock.h>
|
||||
#include <linux/timer.h>
|
||||
#include <linux/freezer.h>
|
||||
#include <linux/stat.h>
|
||||
|
||||
#include "rtmutex.h"
|
||||
|
||||
|
|
@ -366,8 +367,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, S_IRUSR, sysfs_test_status, NULL);
|
||||
static DEVICE_ATTR(command, S_IWUSR, NULL, sysfs_test_command);
|
||||
|
||||
static struct bus_type rttest_subsys = {
|
||||
.name = "rttest",
|
||||
|
|
|
|||
Loading…
Reference in a new issue