patch-2.4.13 linux/drivers/block/xd.c
Next file: linux/drivers/cdrom/cdrom.c
Previous file: linux/drivers/block/rd.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Oct 15 13:27:41 2001
- Orig file:
v2.4.12/linux/drivers/block/xd.c
- Orig date:
Sun Sep 23 11:40:57 2001
diff -u --recursive --new-file v2.4.12/linux/drivers/block/xd.c linux/drivers/block/xd.c
@@ -336,7 +336,7 @@
}
case BLKGETSIZE:
if (!arg) return -EINVAL;
- return put_user(xd_struct[MINOR(inode->i_rdev)].nr_sects,(long *) arg);
+ return put_user(xd_struct[MINOR(inode->i_rdev)].nr_sects,(unsigned long *) arg);
case BLKGETSIZE64:
return put_user((u64)xd_struct[MINOR(inode->i_rdev)].nr_sects << 9, (u64 *)arg);
case HDIO_SET_DMA:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)