Staging: frontier: fix up my fixup for some sysfs attribute permissions
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 18 Nov 2010 19:21:04 +0000 (11:21 -0800)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 17 Apr 2011 20:15:53 +0000 (16:15 -0400)
commit 2a767fda5d0d8dcff465724dfad6ee131489b3f2 upstream.

They should be writable by root, not readable.
Doh, stupid me with the wrong flags.

Reported-by: Jonathan Cameron <jic23@cam.ac.uk>
Cc: David Taht <d@teklibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/staging/frontier/tranzport.c

index 7218334d96fce94b97791d728105586cb96c597c..9d60e9218df21491a11116407667d6196fffc1b4 100644 (file)
@@ -202,7 +202,7 @@ static void usb_tranzport_abort_transfers(struct usb_tranzport *dev)
     t->value = temp;                                                   \
     return count;                                                      \
   }                                                                    \
-  static DEVICE_ATTR(value, S_IRUSR | S_IRUGO, show_##value, set_##value);
+  static DEVICE_ATTR(value, S_IWUSR | S_IRUGO, show_##value, set_##value);
 
 show_int(enable);
 show_int(offline);