summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaseer Ahmed <naseer@codeaurora.org>2014-08-07 20:45:03 -0400
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:38:20 -0700
commite8f1a69da06e22b46551b0d448aca25cf191e002 (patch)
tree3e057dbcc1c7d237a01c82ccf075de6d482a0020
parenta932f10e6227232d5dde3d43eac5398a021540ea (diff)
mdss: Set initial permissions for CEC write node
Userspace cannot chown this node if read permissions aren't set. Change-Id: I000ec09a30cf1803f307d96ac387ceb746a4a9e2 Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_hdmi_cec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_cec.c b/drivers/video/fbdev/msm/mdss_hdmi_cec.c
index 3e9035a7a030..d6f729933a21 100644
--- a/drivers/video/fbdev/msm/mdss_hdmi_cec.c
+++ b/drivers/video/fbdev/msm/mdss_hdmi_cec.c
@@ -772,7 +772,7 @@ static DEVICE_ATTR(enable_compliance, S_IRUGO | S_IWUSR,
static DEVICE_ATTR(logical_addr, S_IRUSR | S_IWUSR,
hdmi_rda_cec_logical_addr, hdmi_wta_cec_logical_addr);
static DEVICE_ATTR(rd_msg, S_IRUGO, hdmi_rda_cec_msg, NULL);
-static DEVICE_ATTR(wr_msg, S_IWUSR, NULL, hdmi_wta_cec_msg);
+static DEVICE_ATTR(wr_msg, S_IWUSR | S_IRUSR, NULL, hdmi_wta_cec_msg);
static struct attribute *hdmi_cec_fs_attrs[] = {
&dev_attr_enable.attr,