summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2007-06-27 14:10:08 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-06-28 11:38:29 -0700
commitddc80bd781590ef6eb8ce30a0f3ac88c5599e41c (patch)
tree01b6b88424e18c4704bdd179c07065abb3d38714
parent5da44ad504662de8120063bdca46897a15f3f1e5 (diff)
downloadlinux-ddc80bd781590ef6eb8ce30a0f3ac88c5599e41c.tar.bz2
ext2: fix return of uninitialised variable
gcc correctly says fs/ext2/super.c: In function 'ext2_remount': fs/ext2/super.c:1055: warning: 'err' may be used uninitialized in this function Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--fs/ext2/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index c9fd8cf6eaa9..5de5061eb331 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -1043,6 +1043,7 @@ static int ext2_remount (struct super_block * sb, int * flags, char * data)
if ((ext2_use_xip(sb)) && (sb->s_blocksize != PAGE_SIZE)) {
printk("XIP: Unsupported blocksize\n");
+ err = -EINVAL;
goto restore_opts;
}