patch-2.4.13 linux/drivers/ide/pdcraid.c

Next file: linux/drivers/ide/rapide.c
Previous file: linux/drivers/ide/ide.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/drivers/ide/pdcraid.c linux/drivers/ide/pdcraid.c
@@ -111,8 +111,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)