Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ddc80bd781590ef6eb8ce30a0f3ac88c5599e41c
Commit:     ddc80bd781590ef6eb8ce30a0f3ac88c5599e41c
Parent:     5da44ad504662de8120063bdca46897a15f3f1e5
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Wed Jun 27 14:10:08 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Jun 28 11:38:29 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 fs/ext2/super.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index c9fd8cf..5de5061 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;
        }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to