USB: storage: sierra_ms: fix sysfs file attribute
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Nov 2010 19:17:52 +0000 (11:17 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:33:07 +0000 (13:33 -0800)
commit1fb7af06dc6f63784aa04e44dde66bc9f2b73604
tree4bea8fcb2ec2a832ff604a39c0c86d88394a25f2
parentf9a65bd413df09aaee5b013a2e51fd4aece687fa
USB: storage: sierra_ms: fix sysfs file attribute

commit d9624e75f6ad94d8a0718c1fafa89186d271a78c 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>
drivers/usb/storage/sierra_ms.c