From b4209a856d9b94b68504604a2d39f5ccae0047b2 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 22 Apr 2005 15:20:05 +0000 Subject: [PATCH] bugfix.. r isn't an error in 'return r' --- servers/fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/fs/super.c b/servers/fs/super.c index 6d3c2f3e3..26af83132 100644 --- a/servers/fs/super.c +++ b/servers/fs/super.c @@ -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 */