summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2010-10-28 03:30:04 +0200
committerTheodore Ts'o <tytso@mit.edu>2010-10-28 03:30:04 +0200
commita1c6c5698d53db4c47a25c3a8d11731a4d7b8370 (patch)
tree4c0b46a74ea1699f8a5e2765a432fec35fb38bcb /fs
parentext4: don't hold spinlock while calling ext4_issue_discard() (diff)
downloadlinux-a1c6c5698d53db4c47a25c3a8d11731a4d7b8370.tar.xz
linux-a1c6c5698d53db4c47a25c3a8d11731a4d7b8370.zip
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')
-rw-r--r--fs/ext4/super.c1
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)
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);