patch-2.4.13 linux/drivers/block/acsi.c

Next file: linux/drivers/block/amiflop.c
Previous file: linux/drivers/block/DAC960.h
Back to the patch index
Back to the overall index

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

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