All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] do_mounts.c ioctl fix
@ 2002-11-23  0:52 Ralf Baechle
  0 siblings, 0 replies; only message in thread
From: Ralf Baechle @ 2002-11-23  0:52 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-23  0:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-23  0:52 [PATCH] do_mounts.c ioctl fix Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.