Skip to content

Commit

Permalink
[PATCH] reiserfs: handle_attrs() fix
Browse files Browse the repository at this point in the history
Fix a use-uninitialised bug.

Cc: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jun 30, 2005
1 parent 8cb681b commit c60e81e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/reiserfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,10 +1053,9 @@ static void handle_barrier_mode(struct super_block *s, unsigned long bits) {

static void handle_attrs( struct super_block *s )
{
struct reiserfs_super_block * rs;
struct reiserfs_super_block * rs = SB_DISK_SUPER_BLOCK (s);

if( reiserfs_attrs( s ) ) {
rs = SB_DISK_SUPER_BLOCK (s);
if( old_format_only(s) ) {
reiserfs_warning(s, "reiserfs: cannot support attributes on 3.5.x disk format" );
REISERFS_SB(s) -> s_mount_opt &= ~ ( 1 << REISERFS_ATTRS );
Expand Down

0 comments on commit c60e81e

Please sign in to comment.