aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/commit.c
diff options
context:
space:
mode:
authorTao Ma <[email protected]>2011-04-05 23:55:28 +0000
committerTheodore Ts'o <[email protected]>2011-04-05 23:55:28 +0000
commit0449641130f5652b344ef6fa39fa019d7e94660a (patch)
treed24779d75a6d3fafff8082591b3572a5fdb32858 /fs/ubifs/commit.c
parentjbd2: fix potential memory leak on transaction commit (diff)
downloadkernel-0449641130f5652b344ef6fa39fa019d7e94660a.tar.gz
kernel-0449641130f5652b344ef6fa39fa019d7e94660a.zip
ext4: init timer earlier to avoid a kernel panic in __save_error_info
During mount, when we fail to open journal inode or root inode, the __save_error_info will mod_timer. But actually s_err_report isn't initialized yet and the kernel oops. The detailed information can be found https://bugzilla.kernel.org/show_bug.cgi?id=32082. The best way is to check whether the timer s_err_report is initialized or not. But it seems that in include/linux/timer.h, we can't find a good function to check the status of this timer, so this patch just move the initializtion of s_err_report earlier so that we can avoid the kernel panic. The corresponding del_timer is also added in the error path. Reported-by: Sami Liedes <[email protected]> Signed-off-by: Tao Ma <[email protected]> Signed-off-by: "Theodore Ts'o" <[email protected]>
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions