patch-2.4.13 linux/drivers/block/nbd.c

Next file: linux/drivers/block/paride/aten.c
Previous file: linux/drivers/block/loop.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/drivers/block/nbd.c linux/drivers/block/nbd.c
@@ -445,7 +445,7 @@
 		return 0;
 #endif
 	case BLKGETSIZE:
-		return put_user(nbd_bytesizes[dev] >> 9, (long *) arg);
+		return put_user(nbd_bytesizes[dev] >> 9, (unsigned long *) arg);
 	case BLKGETSIZE64:
 		return put_user((u64)nbd_bytesizes[dev], (u64 *) arg);
 	}
@@ -542,4 +542,6 @@
 module_exit(nbd_cleanup);
 
 MODULE_DESCRIPTION("Network Block Device");
+MODULE_LICENSE("GPL");
+
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)