summaryrefslogtreecommitdiff
path: root/drivers/usb/misc/trancevibrator.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-11-15 22:34:26 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-16 01:04:15 +0300
commitd489a4b3926bad571d404ca6508f6744b9602776 (patch)
tree481f2b750b45190097c7a5d69aa372cd3f9a4347 /drivers/usb/misc/trancevibrator.c
parentc990600d340641150f7270470a64bd99a5c0b225 (diff)
downloadlinux-d489a4b3926bad571d404ca6508f6744b9602776.tar.xz
USB: misc: trancevibrator: fix up a sysfs attribute permission
It should not be writable by any user. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Sam Hocevar <sam@zoy.org> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc/trancevibrator.c')
-rw-r--r--drivers/usb/misc/trancevibrator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/trancevibrator.c b/drivers/usb/misc/trancevibrator.c
index d77aba46ae85..f63776a48e2a 100644
--- a/drivers/usb/misc/trancevibrator.c
+++ b/drivers/usb/misc/trancevibrator.c
@@ -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)