mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 23:23:53 +02:00
ext4: fix NULL pointer dereference in print_daily_error_info()
commit a1c6c5698d upstream.
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>
Cc: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b81d08ba84
commit
6e551814bc
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user