From: Greg Kroah-Hartman Date: Mon, 15 Nov 2010 19:34:26 +0000 (-0800) Subject: USB: misc: trancevibrator: fix up a sysfs attribute permission X-Git-Tag: v2.6.37-rc4~62^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d489a4b3926bad571d404ca6508f6744b9602776;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git USB: misc: trancevibrator: fix up a sysfs attribute permission It should not be writable by any user. Reported-by: Linus Torvalds Cc: Sam Hocevar Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/trancevibrator.c b/drivers/usb/misc/trancevibrator.c index d77aba4..f63776a 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)