lkml.org 
[lkml]   [2004]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [PATCH] PCI Hotplug fixes for 2.6.4-rc1
    Date
    From
    ChangeSet 1.1623, 2004/03/02 13:11:26-08:00, greg@kroah.com

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

    Thanks to Linda Xie for pointing this out.


    drivers/pci/hotplug/pci_hotplug_core.c | 8 ++++----
    1 files changed, 4 insertions(+), 4 deletions(-)


    diff -Nru a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c
    --- a/drivers/pci/hotplug/pci_hotplug_core.c Tue Mar 2 19:42:22 2004
    +++ b/drivers/pci/hotplug/pci_hotplug_core.c Tue Mar 2 19:42:22 2004
    @@ -292,7 +292,7 @@
    }

    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,
    };

    @@ -311,7 +311,7 @@
    }

    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,
    };

    @@ -361,7 +361,7 @@
    }

    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,
    };

    @@ -387,7 +387,7 @@
    }

    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,
    };

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:01    [W:0.021 / U:125.456 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site