mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
USB: storage: sierra_ms: fix sysfs file attribute
commit d9624e75f6 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -120,7 +120,7 @@ static ssize_t show_truinst(struct device *dev, struct device_attribute *attr,
|
||||
}
|
||||
return result;
|
||||
}
|
||||
static DEVICE_ATTR(truinst, S_IWUGO | S_IRUGO, show_truinst, NULL);
|
||||
static DEVICE_ATTR(truinst, S_IRUGO, show_truinst, NULL);
|
||||
|
||||
int sierra_ms_init(struct us_data *us)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user