]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: sysfs: Update ROM to include default owner write access
authorAlex Williamson <alex.williamson@redhat.com>
Wed, 5 Jan 2011 17:26:41 +0000 (10:26 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 14 Jan 2011 16:55:42 +0000 (08:55 -0800)
commite5c753eaa4909519de4e49d7448291499ba493b1
tree331a632f3fe03b1a1c97209e42ba2e4972dc5887
parent5dda5b1d37726de52ee582f746b0d5897b5eb183
PCI: sysfs: Update ROM to include default owner write access

The PCI sysfs ROM interface requires an enabling write to access the ROM
image, but the default file mode is 0400.  The original proposed patch
adding sysfs ROM support was a true read-only interface, with the
enabling bit coming in as a feature request.  I suspect it was simply an
oversight that the file mode didn't get updated to match the API.

Acked-by: Chris Wright <chrisw@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-sysfs.c