diff options
| author | Joseph Qi <[email protected]> | 2022-03-16 23:15:09 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-03-17 18:02:13 +0000 |
| commit | 7b0b1332cfdb94489836b67d088a779699f8e47e (patch) | |
| tree | de8c2748936244e4f181009872e3c67b7287467c /net/unix/af_unix.c | |
| parent | configs/debug: restore DEBUG_INFO=y for overriding (diff) | |
| download | kernel-7b0b1332cfdb94489836b67d088a779699f8e47e.tar.gz kernel-7b0b1332cfdb94489836b67d088a779699f8e47e.zip | |
ocfs2: fix crash when initialize filecheck kobj fails
Once s_root is set, genric_shutdown_super() will be called if
fill_super() fails. That means, we will call ocfs2_dismount_volume()
twice in such case, which can lead to kernel crash.
Fix this issue by initializing filecheck kobj before setting s_root.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 5f483c4abb50 ("ocfs2: add kobject for online file check")
Signed-off-by: Joseph Qi <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Changwei Ge <[email protected]>
Cc: Gang He <[email protected]>
Cc: Jun Piao <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
