]> www.infradead.org Git - users/hch/misc.git/commit
xfs: fix error bailout in xfs_rtginode_create
authorDarrick J. Wong <djwong@kernel.org>
Mon, 2 Dec 2024 18:57:30 +0000 (10:57 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 13 Dec 2024 01:45:10 +0000 (17:45 -0800)
commit23bee6f390a12d0c4c51fefc083704bc5dac377e
tree035878dc4ce24fa8a3ef14e1473608efa010e417
parentaf9f02457f461b23307fe826a37be61ba6e32c92
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: ae897e0bed0f54 ("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>
fs/xfs/libxfs/xfs_rtgroup.c