diff options
| author | Ralf Bächle <ralf@linux-mips.org> | 2002-11-24 22:27:10 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-11-24 22:27:10 -0800 |
| commit | fe8e25c3f243e63340dc8dde0cfe802b793f42c2 (patch) | |
| tree | b456266bf32f4da8eeb9093f737966f4297e79be /init | |
| parent | 46e76c1ae7a9b302f3d2d0a726413b5c5d473483 (diff) | |
[PATCH] do_mounts.c ioctl fix
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.
Diffstat (limited to 'init')
| -rw-r--r-- | init/do_mounts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c index c3dcf501def7..c1920e0e81f0 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -595,7 +595,8 @@ static int __init rd_load_image(char *from) #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) |
