projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75185c9
)
drm: set permissions on edid file to 0444
author
Keith Packard
<keithp@keithp.com>
Sun, 31 May 2009 03:42:26 +0000
(20:42 -0700)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 3 Jun 2009 23:32:12 +0000
(09:32 +1000)
Without initializing the sysfs attributes for the edid file,
it was created with mode 0, making it difficult for applications to use.
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_sysfs.c
b/drivers/gpu/drm/drm_sysfs.c
index 182bdf99cf7a82b3ff3866e864649dd3363e6eb7..9987ab8808356d13b01c2540c085181e4f7db791 100644
(file)
--- a/
drivers/gpu/drm/drm_sysfs.c
+++ b/
drivers/gpu/drm/drm_sysfs.c
@@
-317,6
+317,7
@@
static struct device_attribute connector_attrs_opt1[] = {
static struct bin_attribute edid_attr = {
.attr.name = "edid",
+ .attr.mode = 0444,
.size = 128,
.read = edid_show,
};