Commit 2cf3f126 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

PCI Hotplug: fix up the permission settings on a few of the sysfs files.

Thanks to Linda Xie for pointing this out.
parent 37c7e3f3
...@@ -292,7 +292,7 @@ static ssize_t latch_read_file (struct hotplug_slot *slot, char *buf) ...@@ -292,7 +292,7 @@ static ssize_t latch_read_file (struct hotplug_slot *slot, char *buf)
} }
static struct hotplug_slot_attribute hotplug_slot_attr_latch = { static struct hotplug_slot_attribute hotplug_slot_attr_latch = {
.attr = {.name = "latch", .mode = S_IFREG | S_IRUGO | S_IWUSR}, .attr = {.name = "latch", .mode = S_IFREG | S_IRUGO},
.show = latch_read_file, .show = latch_read_file,
}; };
...@@ -311,7 +311,7 @@ static ssize_t presence_read_file (struct hotplug_slot *slot, char *buf) ...@@ -311,7 +311,7 @@ static ssize_t presence_read_file (struct hotplug_slot *slot, char *buf)
} }
static struct hotplug_slot_attribute hotplug_slot_attr_presence = { static struct hotplug_slot_attribute hotplug_slot_attr_presence = {
.attr = {.name = "adapter", .mode = S_IFREG | S_IRUGO | S_IWUSR}, .attr = {.name = "adapter", .mode = S_IFREG | S_IRUGO},
.show = presence_read_file, .show = presence_read_file,
}; };
...@@ -361,7 +361,7 @@ static ssize_t max_bus_speed_read_file (struct hotplug_slot *slot, char *buf) ...@@ -361,7 +361,7 @@ static ssize_t max_bus_speed_read_file (struct hotplug_slot *slot, char *buf)
} }
static struct hotplug_slot_attribute hotplug_slot_attr_max_bus_speed = { static struct hotplug_slot_attribute hotplug_slot_attr_max_bus_speed = {
.attr = {.name = "max_bus_speed", .mode = S_IFREG | S_IRUGO | S_IWUSR}, .attr = {.name = "max_bus_speed", .mode = S_IFREG | S_IRUGO},
.show = max_bus_speed_read_file, .show = max_bus_speed_read_file,
}; };
...@@ -387,7 +387,7 @@ static ssize_t cur_bus_speed_read_file (struct hotplug_slot *slot, char *buf) ...@@ -387,7 +387,7 @@ static ssize_t cur_bus_speed_read_file (struct hotplug_slot *slot, char *buf)
} }
static struct hotplug_slot_attribute hotplug_slot_attr_cur_bus_speed = { static struct hotplug_slot_attribute hotplug_slot_attr_cur_bus_speed = {
.attr = {.name = "cur_bus_speed", .mode = S_IFREG | S_IRUGO | S_IWUSR}, .attr = {.name = "cur_bus_speed", .mode = S_IFREG | S_IRUGO},
.show = cur_bus_speed_read_file, .show = cur_bus_speed_read_file,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment