diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index 106be0d08f81..a3cd8cad532a 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c | |||
@@ -432,7 +432,7 @@ pci_read_config(struct file *filp, struct kobject *kobj, | |||
432 | u8 *data = (u8*) buf; | 432 | u8 *data = (u8*) buf; |
433 | 433 | ||
434 | /* Several chips lock up trying to read undefined config space */ | 434 | /* Several chips lock up trying to read undefined config space */ |
435 | if (security_capable(&init_user_ns, filp->f_cred, CAP_SYS_ADMIN) == 0) { | 435 | if (security_capable(filp->f_cred, &init_user_ns, CAP_SYS_ADMIN) == 0) { |
436 | size = dev->cfg_size; | 436 | size = dev->cfg_size; |
437 | } else if (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) { | 437 | } else if (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) { |
438 | size = 128; | 438 | size = 128; |