Commit fe8e25c3 authored by Ralf Bächle's avatar Ralf Bächle Committed by Linus Torvalds

[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.
parent 46e76c1a
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment