diff options
author | Keith Packard <keithp@keithp.com> | 2009-05-31 07:42:26 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-06-04 03:32:12 +0400 |
commit | e36ebaf49274ffa78f17b62bcae4c92c33b5b391 (patch) | |
tree | b6e74f25a31af5f15037422eae75a503a31fc95b /drivers/gpu/drm/drm_sysfs.c | |
parent | 75185c929ed241f5cf1aa28999b8012181e2c7cb (diff) | |
download | linux-e36ebaf49274ffa78f17b62bcae4c92c33b5b391.tar.xz |
drm: set permissions on edid file to 0444
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>
Diffstat (limited to 'drivers/gpu/drm/drm_sysfs.c')
-rw-r--r-- | drivers/gpu/drm/drm_sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index 182bdf99cf7a..9987ab880835 100644 --- 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, }; |