patch-2.3.99-pre7 linux/drivers/pci/proc.c

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

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/pci/proc.c linux/drivers/pci/proc.c
@@ -389,7 +389,7 @@
 
 	*eof = 1;
 	pci_for_each_dev(dev) {
-		nprinted = sprint_dev_config(dev, buf + len, count - len);
+		nprinted = sprint_dev_config(dev, buf + len, PAGE_SIZE - len);
 		if (nprinted < 0) {
 			*eof = 0;
 			break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)