Skip to content

Commit

Permalink
ext4: fix NULL pointer dereference in print_daily_error_info()
Browse files Browse the repository at this point in the history
Fix NULL pointer dereference in print_daily_error_info, when   
called on unmounted fs (EXT4_SB(sb) returns NULL), by removing error 
reporting timer in ext4_put_super.

Google-Bug-Id: 3017663

Signed-off-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
  • Loading branch information
sergey-senozhatsky authored and tytso committed Oct 28, 2010
1 parent 53fdcf9 commit a1c6c56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ static void ext4_put_super(struct super_block *sb)
ext4_abort(sb, "Couldn't clean up the journal");
}

del_timer(&sbi->s_err_report);
ext4_release_system_zone(sb);
ext4_mb_release(sb);
ext4_ext_release(sb);
Expand Down

0 comments on commit a1c6c56

Please sign in to comment.