Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/staging/udlfb/udlfb.c
··· 1441 1441 __ATTR_RO(metrics_bytes_identical), 1442 1442 __ATTR_RO(metrics_bytes_sent), 1443 1443 __ATTR_RO(metrics_cpu_kcycles_used), 1444 - __ATTR(metrics_reset, S_IRUSR, NULL, metrics_reset_store), 1444 + __ATTR(metrics_reset, S_IWUSR, NULL, metrics_reset_store), 1445 1445 }; 1446 1446 1447 1447 /*