Skip to contentSkip to conversation

s6e63m0: set permissions on gamma_table file to 0444

PATCH New Axel Lin 1 participant 1 message Jun 23, 2010

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 s6e63m0: set permissions on gamma_table file to 0444

gamma_table is not writable, thus set permissions to 0444.

---
 drivers/video/backlight/s6e63m0.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/backlight/s6e63m0.c +1 -1
index a3128c9..2d83286 100644
@@ -729,7 +729,7 @@ static ssize_t s6e63m0_sysfs_show_gamma_table(struct device *dev,
 
 	return strlen(buf);
 }
-static DEVICE_ATTR(gamma_table, 0644,
+static DEVICE_ATTR(gamma_table, 0444,
 		s6e63m0_sysfs_show_gamma_table, NULL);
 
 static int __init s6e63m0_probe(struct spi_device *spi)
Signature · 1 line
1.5.4.3