patch-2.1.100 linux/drivers/pci/proc.c

Next file: linux/drivers/pci/quirks.c
Previous file: linux/drivers/pci/pcisyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/drivers/pci/proc.c linux/drivers/pci/proc.c
@@ -57,7 +57,7 @@
 	 * undefined locations (think of Intel PIIX4 as a typical example).
 	 */
 
-	if (fsuser())
+	if (capable(CAP_SYS_ADMIN))
 		size = PCI_CFG_SPACE_SIZE;
 	else if (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS)
 		size = 128;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov