]> git.hungrycats.org Git - linux/commitdiff
[PATCH] change_floppy() fix
authorAlexander Viro <viro@math.psu.edu>
Fri, 3 May 2002 03:09:05 +0000 (20:09 -0700)
committerRussell King <rmk@arm.linux.org.uk>
Fri, 3 May 2002 03:09:05 +0000 (20:09 -0700)
Needed both in 2.4 and 2.5

init/do_mounts.c

index df1b125802841b246963a839faf6a545e30be7a2..d8a3646f45452fa8d036a613591e05c03d44e12d 100644 (file)
@@ -374,7 +374,7 @@ static void __init change_floppy(char *fmt, ...)
        va_start(args, fmt);
        vsprintf(buf, fmt, args);
        va_end(args);
-       fd = open("/dev/root", O_RDWR, 0);
+       fd = open("/dev/root", O_RDWR | O_NDELAY, 0);
        if (fd >= 0) {
                sys_ioctl(fd, FDEJECT, 0);
                close(fd);