projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f722406
)
amd64_edac: Fix bogus sysfs file permissions
author
Borislav Petkov
<bp@suse.de>
Sun, 12 May 2013 11:03:56 +0000
(13:03 +0200)
committer
Borislav Petkov
<bp@suse.de>
Tue, 21 May 2013 07:13:11 +0000
(09:13 +0200)
Fix yet another issue caught by
8f46baaa7ec6c
("base: core: WARN() about
bogus permissions on device attributes").
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/amd64_edac_inj.c
patch
|
blob
|
history
diff --git
a/drivers/edac/amd64_edac_inj.c
b/drivers/edac/amd64_edac_inj.c
index 8c171fa1cb9bc65f5531e178bd45cb9a0ef0c9ad..845f04786c2de4baedf0952d2ec2b5a830e62602 100644
(file)
--- a/
drivers/edac/amd64_edac_inj.c
+++ b/
drivers/edac/amd64_edac_inj.c
@@
-202,9
+202,9
@@
static DEVICE_ATTR(inject_word, S_IRUGO | S_IWUSR,
amd64_inject_word_show, amd64_inject_word_store);
static DEVICE_ATTR(inject_ecc_vector, S_IRUGO | S_IWUSR,
amd64_inject_ecc_vector_show, amd64_inject_ecc_vector_store);
-static DEVICE_ATTR(inject_write, S_I
RUGO | S_I
WUSR,
+static DEVICE_ATTR(inject_write, S_IWUSR,
NULL, amd64_inject_write_store);
-static DEVICE_ATTR(inject_read,
S_IRUGO |
S_IWUSR,
+static DEVICE_ATTR(inject_read, S_IWUSR,
NULL, amd64_inject_read_store);