summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@squashfs.org.uk>2025-08-11 23:37:40 +0100
committerAndrew Morton <akpm@linux-foundation.org>2025-08-19 16:35:53 -0700
commitb64700d41bdc4e9f82f1346c15a3678ebb91a89c (patch)
treec8be9bf503c746e9e308bf366144807bc2a33662 /rust/helpers/helpers.c
parent44958f2025ed3f29fc3e93bb1f6c16121d7847ad (diff)
squashfs: fix memory leak in squashfs_fill_super
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/20250811223740.110392-1-phillip@squashfs.org.uk Fixes: 734aa85390ea ("Squashfs: check return result of sb_min_blocksize") Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk> Reported-by: Scott GUO <scottzhguo@tencent.com> Closes: https://lore.kernel.org/all/20250811061921.3807353-1-scott_gzh@163.com Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions