patch-2.4.13 linux/drivers/mtd/mtdblock.c

Next file: linux/drivers/mtd/mtdblock_ro.c
Previous file: linux/drivers/mtd/ftl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/drivers/mtd/mtdblock.c linux/drivers/mtd/mtdblock.c
@@ -539,7 +539,7 @@
 
 	switch (cmd) {
 	case BLKGETSIZE:   /* Return device size */
-		return put_user((mtdblk->mtd->size >> 9), (long *) arg);
+		return put_user((mtdblk->mtd->size >> 9), (unsigned long *) arg);
 	case BLKGETSIZE64:
 		return put_user((u64)mtdblk->mtd->size, (u64 *)arg);
 		

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