Skip to content

Commit 23bee6f

Browse files
author
Darrick J. Wong
committed
xfs: fix error bailout in xfs_rtginode_create
smatch reported that we screwed up the error cleanup in this function. Fix it. Cc: <stable@vger.kernel.org> # v6.13-rc1 Fixes: ae897e0 ("xfs: support creating per-RTG files in growfs") Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
1 parent af9f024 commit 23bee6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/xfs/libxfs/xfs_rtgroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ xfs_rtginode_create(
496496

497497
error = xfs_metadir_create(&upd, S_IFREG);
498498
if (error)
499-
return error;
499+
goto out_cancel;
500500

501501
xfs_rtginode_lockdep_setup(upd.ip, rtg_rgno(rtg), type);
502502

0 commit comments

Comments
 (0)