From: Andrew Morton Date: Wed, 27 Jun 2007 21:10:08 +0000 (-0700) Subject: ext2: fix return of uninitialised variable X-Git-Tag: v2.6.22-rc7~17 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ddc80bd781590ef6eb8ce30a0f3ac88c5599e41c;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Linus Torvalds --- diff --git a/fs/ext2/super.c b/fs/ext2/super.c index c9fd8cf6eaa..5de5061eb33 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; }