patch-2.3.45 linux/arch/ia64/kernel/pci-dma.c

Next file: linux/arch/ia64/kernel/pci.c
Previous file: linux/arch/ia64/kernel/irq_lock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.44/linux/arch/ia64/kernel/pci-dma.c linux/arch/ia64/kernel/pci-dma.c
@@ -21,7 +21,7 @@
 extern __inline__ unsigned long
 get_order (unsigned long size)
 {
-	unsigned long order = ia64_fls(size);
+	unsigned long order = ia64_fls(size - 1) + 1;
 
 	printk ("get_order: size=%lu, order=%lu\n", size, order);
 

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])