diff options
author | Yang Yingliang <[email protected]> | 2021-05-10 19:10:51 +0800 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2021-06-17 10:53:20 -0400 |
commit | 8f6840c4fd1e7bd715e403074fb161c1a04cda73 (patch) | |
tree | 3cf4e01b3005a7cc74be1b521b4f43ce3962f722 /lib/mpi/mpi-add.c | |
parent | b9a037b7f3c401d3c63e0423e56aef606b1ffaaf (diff) |
ext4: return error code when ext4_fill_flex_info() fails
After commit c89128a00838 ("ext4: handle errors on
ext4_commit_super"), 'ret' may be set to 0 before calling
ext4_fill_flex_info(), if ext4_fill_flex_info() fails ext4_mount()
doesn't return error code, it makes 'root' is null which causes crash
in legacy_get_tree().
Fixes: c89128a00838 ("ext4: handle errors on ext4_commit_super")
Reported-by: Hulk Robot <[email protected]>
Cc: <[email protected]> # v4.18+
Signed-off-by: Yang Yingliang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions