Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76215b04 authored by Rusty Russell's avatar Rusty Russell
Browse files

arch/powerpc/platforms/powernv/opal-dump.c: fix world-writable sysfs files



If you don't have a store function, you're not writable anyway!

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 6656c21c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -102,9 +102,9 @@ static ssize_t dump_ack_store(struct dump_obj *dump_obj,
 * due to the dynamic size of the dump
 */
static struct dump_attribute id_attribute =
	__ATTR(id, 0666, dump_id_show, NULL);
	__ATTR(id, S_IRUGO, dump_id_show, NULL);
static struct dump_attribute type_attribute =
	__ATTR(type, 0666, dump_type_show, NULL);
	__ATTR(type, S_IRUGO, dump_type_show, NULL);
static struct dump_attribute ack_attribute =
	__ATTR(acknowledge, 0660, dump_ack_show, dump_ack_store);