mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
If sb_min_blocksize returns 0, squashfs_fill_super exits without freeing
allocated memory (sb->s_fs_info).
Fix this by moving the call to sb_min_blocksize to before memory is
allocated.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 734aa85390 ("Squashfs: check return result of sb_min_blocksize")
Signed-off-by: Phillip Lougher <[email protected]>
Reported-by: Scott GUO <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>