patch-2.4.13 linux/drivers/mtd/nftlcore.c

Next file: linux/drivers/net/8139cp.c
Previous file: linux/drivers/mtd/mtdblock_ro.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/drivers/mtd/nftlcore.c linux/drivers/mtd/nftlcore.c
@@ -804,7 +804,7 @@
 	}
 	case BLKGETSIZE:   /* Return device size */
 		return put_user(part_table[MINOR(inode->i_rdev)].nr_sects,
-                                (long *) arg);
+                                (unsigned long *) arg);
 	case BLKGETSIZE64:
 		return put_user((u64)part_table[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)