Skip to content

Commit

Permalink
Staging: udlfb: fix up my fixup for some sysfs attribute permissions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Nov 18, 2010
1 parent 4d7bc38 commit 926c111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/udlfb/udlfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};

/*
Expand Down

0 comments on commit 926c111

Please sign in to comment.