[PATCH] do_mounts.c ioctl fix

From: Ralf Baechle (ralf@linux-mips.org)
Date: Fri Nov 22 2002 - 19:52:40 EST


Hi Linus,

init/do_mounts.c is using the BLKGETSIZE ioctl which expects a pointer to
an unsigned long but actually it passes a pointer to an int which of
course is blowing up on 64-bit systems.

  Ralf

Index: init/do_mounts.c
===================================================================
RCS file: /home/cvs/linux/init/do_mounts.c,v
retrieving revision 1.16
diff -u -r1.16 do_mounts.c
--- init/do_mounts.c 5 Nov 2002 15:18:24 -0000 1.16
+++ init/do_mounts.c 23 Nov 2002 00:48:12 -0000
@@ -488,7 +595,8 @@
 
 #ifdef CONFIG_BLK_DEV_RAM
         int in_fd, out_fd;
- int nblocks, rd_blocks, devblocks, i;
+ unsigned long rd_blocks, devblocks;
+ int nblocks, i;
         char *buf;
         unsigned short rotate = 0;
 #if !defined(CONFIG_ARCH_S390) && !defined(CONFIG_PPC_ISERIES)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:42 EST