projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
515b498
)
Staging: frontier: fix up my fixup for some sysfs attribute permissions
author
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 18 Nov 2010 19:21:04 +0000
(11:21 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 18 Nov 2010 19:27:18 +0000
(11:27 -0800)
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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/frontier/tranzport.c
patch
|
blob
|
history
diff --git
a/drivers/staging/frontier/tranzport.c
b/drivers/staging/frontier/tranzport.c
index 1611a27e9b777c020bec2fe1980ac9f8014758a5..8894ab14f167755a242eda73b5465bb16aaa7b8c 100644
(file)
--- a/
drivers/staging/frontier/tranzport.c
+++ b/
drivers/staging/frontier/tranzport.c
@@
-204,7
+204,7
@@
static void usb_tranzport_abort_transfers(struct usb_tranzport *dev)
t->value = temp; \
return count; \
} \
- static DEVICE_ATTR(value, S_I
R
USR | S_IRUGO, show_##value, set_##value);
+ static DEVICE_ATTR(value, S_I
W
USR | S_IRUGO, show_##value, set_##value);
show_int(enable);
show_int(offline);