aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-11-18 11:21:04 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-18 11:27:19 -0800
commit926c11151e3b82e4facbf2bd2bea15f0ca0ac6f9 (patch)
tree1111bee37414f3a5984e1655ef57ee0b165447fa /drivers
parent4d7bc388b44e42a1feafa35e50eef4f24d6ca59d (diff)
downloadmrst-s0i3-test-926c11151e3b82e4facbf2bd2bea15f0ca0ac6f9.tar.gz
mrst-s0i3-test-926c11151e3b82e4facbf2bd2bea15f0ca0ac6f9.tar.xz
mrst-s0i3-test-926c11151e3b82e4facbf2bd2bea15f0ca0ac6f9.zip
Staging: udlfb: fix up my fixup for some sysfs attribute permissions
They should be writable by root, not readable. Doh, stupid me with the wrong flags. Reported-by: Jonathan Cameron <jic23@cam.ac.uk> Cc: Bernie Thompson <bernie@plugable.com> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/udlfb/udlfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/udlfb/udlfb.c b/drivers/staging/udlfb/udlfb.c
index 0e0bc0b23d4..b7ac1600526 100644
--- a/drivers/staging/udlfb/udlfb.c
+++ b/drivers/staging/udlfb/udlfb.c
@@ -1441,7 +1441,7 @@ static struct device_attribute fb_device_attrs[] = {
__ATTR_RO(metrics_bytes_identical),
__ATTR_RO(metrics_bytes_sent),
__ATTR_RO(metrics_cpu_kcycles_used),
- __ATTR(metrics_reset, S_IRUSR, NULL, metrics_reset_store),
+ __ATTR(metrics_reset, S_IWUSR, NULL, metrics_reset_store),
};
/*