rpms/kernel/F-8 kernel.spec, 1.555, 1.556 linux-2.6-pci-check-mapped-ranges-on-sysfs-resource-files.patch, 1.1, 1.2
Chuck Ebbert
cebbert at fedoraproject.org
Tue Oct 14 10:06:30 UTC 2008
Author: cebbert
Update of /cvs/pkgs/rpms/kernel/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2703
Modified Files:
kernel.spec
linux-2.6-pci-check-mapped-ranges-on-sysfs-resource-files.patch
Log Message:
Fix pci mmap range checking to work without the WARN() macro.
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-8/kernel.spec,v
retrieving revision 1.555
retrieving revision 1.556
diff -u -r1.555 -r1.556
--- kernel.spec 14 Oct 2008 09:28:03 -0000 1.555
+++ kernel.spec 14 Oct 2008 10:06:00 -0000 1.556
@@ -1885,6 +1885,9 @@
%changelog
+* Tue Oct 14 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.26.6-46
+- Fix pci mmap range checking to work without the WARN() macro.
+
* Tue Oct 14 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.26.6-45
- Two x86 fixes from F9:
x86, early_ioremap: fix fencepost error
linux-2.6-pci-check-mapped-ranges-on-sysfs-resource-files.patch:
Index: linux-2.6-pci-check-mapped-ranges-on-sysfs-resource-files.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-8/linux-2.6-pci-check-mapped-ranges-on-sysfs-resource-files.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- linux-2.6-pci-check-mapped-ranges-on-sysfs-resource-files.patch 10 Oct 2008 22:16:30 -0000 1.1
+++ linux-2.6-pci-check-mapped-ranges-on-sysfs-resource-files.patch 14 Oct 2008 10:06:00 -0000 1.2
@@ -57,7 +57,7 @@
+ size = pci_resource_len(pdev, resno) >> PAGE_SHIFT;
+ if (start < size && size - start >= nr)
+ return 1;
-+ WARN(1, "process \"%s\" tried to map 0x%08lx-0x%08lx on %s BAR %d (size 0x%08lx)\n",
++ printk(KERN_WARNING "WARNING: process \"%s\" tried to map 0x%08lx-0x%08lx on %s BAR %d (size 0x%08lx)\n",
+ current->comm, start, start+nr, pci_name(pdev), resno, size);
+ return 0;
+}
More information about the scm-commits
mailing list