patch-2.1.14 linux/drivers/block/loop.c

Next file: linux/drivers/cdrom/cdrom.c
Previous file: linux/drivers/block/ide-cd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.13/linux/drivers/block/loop.c linux/drivers/block/loop.c
@@ -457,7 +457,7 @@
 			return -ENXIO;
 		if (!arg)
 			return -EINVAL;
-		return put_user(loop_sizes[lo->lo_number] << 1, (int *) arg);
+		return put_user(loop_sizes[lo->lo_number] << 1, (long *) arg);
 	default:
 		return -EINVAL;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov