Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2fsck: make sure get_backup_sb() works when ctx is NULL
The print_e2fsck_message() function can call get_backup_sb() with the ctx variable set to NULL. In that case, we can't dereference ctx->filesystem_name; instead, we can get the size of the file system from the ext2fs_block_count(fs->super). Addresses-Coverity-Bug: 1596517 Addresses-Coverity-Bug: 1596505 Fixes: b53ce78 ("e2fsck: don't try backup superblocks beyond...") Signed-off-by: Theodore Ts'o <[email protected]>
- Loading branch information