projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
993bcc6
)
drivers/video/fbdev/sm501fb.c: avoid world-writable sysfs files.
author
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 14 May 2014 01:03:48 +0000
(10:33 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 14 May 2014 01:23:54 +0000
(10:53 +0930)
In line with practice for module parameters, we're adding a build-time
check that sysfs files aren't world-writable.
Cc: Vincent Sanders <vince@simtec.co.uk>
Cc: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/video/fbdev/sm501fb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/fbdev/sm501fb.c
b/drivers/video/fbdev/sm501fb.c
index 1501979099dce08b1b17cff6d0dc281135a9dcb0..c2c8eb668784f08766444b1cabb159c37c92f455 100644
(file)
--- a/
drivers/video/fbdev/sm501fb.c
+++ b/
drivers/video/fbdev/sm501fb.c
@@
-1215,7
+1215,7
@@
static ssize_t sm501fb_crtsrc_store(struct device *dev,
}
/* Prepare the device_attr for registration with sysfs later */
-static DEVICE_ATTR(crt_src, 066
6
, sm501fb_crtsrc_show, sm501fb_crtsrc_store);
+static DEVICE_ATTR(crt_src, 066
4
, sm501fb_crtsrc_show, sm501fb_crtsrc_store);
/* sm501fb_show_regs
*