diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2010-10-27 21:30:04 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-10-27 21:30:04 -0400 |
commit | a1c6c5698d53db4c47a25c3a8d11731a4d7b8370 (patch) | |
tree | 4c0b46a74ea1699f8a5e2765a432fec35fb38bcb /fs/ext4/super.c | |
parent | 53fdcf992d616484d388a8ab9dad07dc8b8f1178 (diff) |
ext4: fix NULL pointer dereference in print_daily_error_info()
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 <sergey.senozhatsky@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 26147746c272..751997d2cefe 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -719,6 +719,7 @@ static void ext4_put_super(struct super_block *sb) | |||
719 | ext4_abort(sb, "Couldn't clean up the journal"); | 719 | ext4_abort(sb, "Couldn't clean up the journal"); |
720 | } | 720 | } |
721 | 721 | ||
722 | del_timer(&sbi->s_err_report); | ||
722 | ext4_release_system_zone(sb); | 723 | ext4_release_system_zone(sb); |
723 | ext4_mb_release(sb); | 724 | ext4_mb_release(sb); |
724 | ext4_ext_release(sb); | 725 | ext4_ext_release(sb); |