projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
723b991
)
USB: storage: sierra_ms: fix sysfs file attribute
author
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 15 Nov 2010 19:17:52 +0000
(11:17 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 15 Nov 2010 22:04:14 +0000
(14:04 -0800)
A non-writable sysfs file shouldn't have writable attributes.
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Kevin Lloyd <klloyd@sierrawireless.com>
Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/sierra_ms.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/storage/sierra_ms.c
b/drivers/usb/storage/sierra_ms.c
index 57fc2f532cabe985b9b10fdd57c7042b6d0fd4be..ceba512f84d0eeeb2f3170a14df915528304dbe2 100644
(file)
--- a/
drivers/usb/storage/sierra_ms.c
+++ b/
drivers/usb/storage/sierra_ms.c
@@
-121,7
+121,7
@@
static ssize_t show_truinst(struct device *dev, struct device_attribute *attr,
}
return result;
}
-static DEVICE_ATTR(truinst, S_I
WUGO | S_I
RUGO, show_truinst, NULL);
+static DEVICE_ATTR(truinst, S_IRUGO, show_truinst, NULL);
int sierra_ms_init(struct us_data *us)
{