patch-2.4.13 linux/drivers/ide/hptraid.c
Next file: linux/drivers/ide/hptraid.h
Previous file: linux/drivers/ide/hd.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon Oct 15 13:27:42 2001
- Orig file:
v2.4.12/linux/drivers/ide/hptraid.c
- Orig date:
Tue Oct 9 17:06:51 2001
diff -u --recursive --new-file v2.4.12/linux/drivers/ide/hptraid.c linux/drivers/ide/hptraid.c
@@ -15,6 +15,8 @@
Based on work
Copyleft (C) 2001 by Wilfried Weissmann <wweissmann@gmx.at>
Copyright (C) 1994-96 Marc ZYNGIER <zyngier@ufr-info-p7.ibp.fr>
+ Based on work done by Søren Schmidt for FreeBSD
+
*/
@@ -83,8 +85,8 @@
if (!arg) return -EINVAL;
sectors = ataraid_gendisk.part[MINOR(inode->i_rdev)].nr_sects;
if (MINOR(inode->i_rdev)&15)
- return put_user(sectors, (long *) arg);
- return put_user(raid[minor].sectors , (long *) arg);
+ return put_user(sectors, (unsigned long *) arg);
+ return put_user(raid[minor].sectors , (unsigned long *) arg);
break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)