minix: release the sb buffer_head when setting the v3 block size fails
PATCH 1/1 minix: release the sb buffer_head when setting the v3 block size fails
At this point the superblock is already read, so jump to the label that releases the buffer_head for it.
--- fs/minix/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/minix/inode.c +1 -1
@@ -293,7 +293,7 @@ static int minix_fill_super(struct super_block *s, struct fs_context *fc) sbi->s_version =MINIX_V3 ; sbi->s_mount_state =MINIX_VALID_FS ;if (!sb_set_blocksize (s, m3s->s_blocksize)) - goto out; + goto out_release; s->s_max_links =MINIX2_LINK_MAX ; }else goto out_no_fs;
Signature · 1 line
2.53.0
Quoted 2 lines · Christoph Hellwig
At this point the superblock is already read, so jump to the label that releases the
buffer_headfor it.
Applied to the vfs-7.2.misc branch of the vfs/vfs.git tree. Patches in the vfs-7.2.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs-7.2.misc
[1/1] minix: release the sb buffer_head when setting the v3 block size fails
https://git.kernel.org/vfs/vfs/c/988c918b812e