Skip to content

Commit

Permalink
ext2: fix return of uninitialised variable
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
akpm00 authored and Linus Torvalds committed Jun 28, 2007
1 parent 5da44ad commit ddc80bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ddc80bd

Please sign in to comment.