patch-2.4.10 linux/drivers/mtd/mtdblock.c
Next file: linux/drivers/mtd/mtdblock_ro.c
Previous file: linux/drivers/mtd/maps/Config.in
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Mon Sep 10 12:42:32 2001
- Orig file:
v2.4.9/linux/drivers/mtd/mtdblock.c
- Orig date:
Sat Apr 28 11:27:54 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/mtd/mtdblock.c linux/drivers/mtd/mtdblock.c
@@ -529,10 +529,9 @@
switch (cmd) {
case BLKGETSIZE: /* Return device size */
- if (!arg)
- return -EFAULT;
- return put_user((mtdblk->mtd->size >> 9),
- (long *) arg)?-EFAULT:0;
+ return put_user((mtdblk->mtd->size >> 9), (long *) arg);
+ case BLKGETSIZE64:
+ return put_user((u64)mtdblk->mtd->size, (u64 *)arg);
case BLKFLSBUF:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)