mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-10-04 08:02:24 +00:00
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>
This commit is contained in:
parent
75185c929e
commit
e36ebaf492
@ -317,6 +317,7 @@ static struct device_attribute connector_attrs_opt1[] = {
|
|||||||
|
|
||||||
static struct bin_attribute edid_attr = {
|
static struct bin_attribute edid_attr = {
|
||||||
.attr.name = "edid",
|
.attr.name = "edid",
|
||||||
|
.attr.mode = 0444,
|
||||||
.size = 128,
|
.size = 128,
|
||||||
.read = edid_show,
|
.read = edid_show,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user