patch-2.4.18 linux/drivers/block/blkpg.c
Next file: linux/drivers/block/cpqarray.c
Previous file: linux/drivers/block/Makefile
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Feb 4 17:42:17 2002
- Orig file:
linux.orig/drivers/block/blkpg.c
- Orig date:
Mon Feb 18 20:18:39 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/drivers/block/blkpg.c linux/drivers/block/blkpg.c
@@ -247,7 +247,7 @@
if (cmd == BLKGETSIZE)
return put_user((unsigned long)ullval, (unsigned long *)arg);
else
- return put_user(ullval, (u64 *)arg);
+ return put_user(ullval << 9, (u64 *)arg);
#if 0
case BLKRRPART: /* Re-read partition tables */
if (!capable(CAP_SYS_ADMIN))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)