patch-1.3.76 linux/drivers/char/ftape/kernel-interface.c

Next file: linux/drivers/net/eexpress.c
Previous file: linux/drivers/block/promise.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.75/linux/drivers/char/ftape/kernel-interface.c linux/drivers/char/ftape/kernel-interface.c
@@ -89,7 +89,7 @@
 {
 	int order;
 
-	size >>= (PAGE_SHIFT-1);
+	size = (size-1) >> (PAGE_SHIFT-1);
 	order = -1;
 	do {
 		size >>= 1;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this