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

Next file: linux/drivers/ide/hptraid.c
Previous file: linux/drivers/i2o/i2o_scsi.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/drivers/ide/hd.c linux/drivers/ide/hd.c
@@ -640,7 +640,7 @@
 
          	case BLKGETSIZE:   /* Return device size */
 			return put_user(hd[MINOR(inode->i_rdev)].nr_sects, 
-					(long *) arg);
+					(unsigned long *) arg);
          	case BLKGETSIZE64:
 			return put_user((u64)hd[MINOR(inode->i_rdev)].nr_sects << 9, 
 					(u64 *) arg);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)