mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
USB: misc: trancevibrator: fix up a sysfs attribute permission
It should not be writable by any user. Reported-by: Linus Torvalds <[email protected]> Cc: Sam Hocevar <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
c990600d34
commit
d489a4b392
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ static ssize_t set_speed(struct device *dev, struct device_attribute *attr,
|
|||
return count;
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(speed, S_IWUGO | S_IRUGO, show_speed, set_speed);
|
||||
static DEVICE_ATTR(speed, S_IRUGO | S_IWUSR, show_speed, set_speed);
|
||||
|
||||
static int tv_probe(struct usb_interface *interface,
|
||||
const struct usb_device_id *id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue