Revision fc3501d411d34823fb9be248a95a0c44f945866f authored by Sven Wegener on 11 February 2009, 21:04:23 UTC, committed by Linus Torvalds on 11 February 2009, 22:25:35 UTC
We need to pass an unsigned long as the minimum, because it gets casted
to an unsigned long in the sysctl handler. If we pass an int, we'll
access four more bytes on 64bit arches, resulting in a random minimum
value.

[rientjes@google.com: fix type of `old_bytes']
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 35887b1
History
File Mode Size
hotplug
pcie
.gitignore -rw-r--r-- 35 bytes
Kconfig -rw-r--r-- 1.7 KB
Makefile -rw-r--r-- 1.5 KB
access.c -rw-r--r-- 9.8 KB
bus.c -rw-r--r-- 5.8 KB
dmar.c -rw-r--r-- 17.4 KB
hotplug-pci.c -rw-r--r-- 339 bytes
hotplug.c -rw-r--r-- 926 bytes
htirq.c -rw-r--r-- 4.2 KB
intel-iommu.c -rw-r--r-- 74.8 KB
intr_remapping.c -rw-r--r-- 11.6 KB
intr_remapping.h -rw-r--r-- 156 bytes
iova.c -rw-r--r-- 10.9 KB
irq.c -rw-r--r-- 1.8 KB
msi.c -rw-r--r-- 19.7 KB
msi.h -rw-r--r-- 1.7 KB
pci-acpi.c -rw-r--r-- 10.2 KB
pci-driver.c -rw-r--r-- 23.1 KB
pci-stub.c -rw-r--r-- 1.2 KB
pci-sysfs.c -rw-r--r-- 24.6 KB
pci.c -rw-r--r-- 63.4 KB
pci.h -rw-r--r-- 6.7 KB
probe.c -rw-r--r-- 31.2 KB
proc.c -rw-r--r-- 10.0 KB
quirks.c -rw-r--r-- 78.8 KB
remove.c -rw-r--r-- 3.6 KB
rom.c -rw-r--r-- 7.2 KB
search.c -rw-r--r-- 13.2 KB
setup-bus.c -rw-r--r-- 16.2 KB
setup-irq.c -rw-r--r-- 1.6 KB
setup-res.c -rw-r--r-- 6.8 KB
slot.c -rw-r--r-- 8.2 KB
syscall.c -rw-r--r-- 2.7 KB

back to top