]> Zhao Yanbai Git Server - minix.git/commitdiff
bugfix.. r isn't an error in 'return r'
authorBen Gras <ben@minix3.org>
Fri, 22 Apr 2005 15:20:05 +0000 (15:20 +0000)
committerBen Gras <ben@minix3.org>
Fri, 22 Apr 2005 15:20:05 +0000 (15:20 +0000)
servers/fs/super.c

index 6d3c2f3e3cc4440bae6ee2f8c07628ddef166c42..26af8313247a0ffb58a1b4328ec889c7658a40fb 100644 (file)
@@ -224,7 +224,7 @@ register struct super_block *sp; /* pointer to a superblock */
        sbbuf, SUPER_BLOCK_BYTES, MIN_BLOCK_SIZE, 0);
   if(r != MIN_BLOCK_SIZE) {
        printf("dev_io failed for super block (%d)\n", r);
-       return r;
+       return EINVAL;
   }
   memcpy(sp, sbbuf, sizeof(*sp));
   sp->s_dev = NO_DEV;          /* restore later */