summaryrefslogtreecommitdiff
path: root/drivers/staging/line6/midi.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-11-18 19:21:04 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-18 19:27:20 (GMT)
commita3a972a053010bfd61c13cfa4ce688d4eebd9a19 (patch)
treec98fbcefd0f70c199972917d11e6785fd0a8e82d /drivers/staging/line6/midi.c
parenta3d13107012ea614184d3c58bb7b579905d5da11 (diff)
downloadlinux-a3a972a053010bfd61c13cfa4ce688d4eebd9a19.tar.xz
Staging: line6: fix up my fixup for some sysfs attribute permissions
They should be writable by root, not readable. Doh, stupid me with the wrong flags. Reported-by: Jonathan Cameron <jic23@cam.ac.uk> Cc: Markus Grabner <grabner@icg.tugraz.at> Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/line6/midi.c')
-rw-r--r--drivers/staging/line6/midi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/line6/midi.c b/drivers/staging/line6/midi.c
index 5388bd7..ab67e88 100644
--- a/drivers/staging/line6/midi.c
+++ b/drivers/staging/line6/midi.c
@@ -350,9 +350,9 @@ static ssize_t midi_set_midi_mask_receive(struct device *dev,
return count;
}
-static DEVICE_ATTR(midi_mask_transmit, S_IRUSR | S_IRUGO,
+static DEVICE_ATTR(midi_mask_transmit, S_IWUSR | S_IRUGO,
midi_get_midi_mask_transmit, midi_set_midi_mask_transmit);
-static DEVICE_ATTR(midi_mask_receive, S_IRUSR | S_IRUGO,
+static DEVICE_ATTR(midi_mask_receive, S_IWUSR | S_IRUGO,
midi_get_midi_mask_receive, midi_set_midi_mask_receive);
/* MIDI device destructor */