]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: fix error bailout in xfs_rtginode_create
authorDarrick J. Wong <djwong@kernel.org>
Mon, 16 Dec 2024 02:18:42 +0000 (18:18 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:32 +0000 (18:01 -0800)
commit372aa942c32c7c718d2af9622b1d431a8a120d11
treeabc65f24fb1c9705ff416dafa2b3df92cee63a71
parent6af3957ea58a4083bb772202aecc010f5a7699bf
xfs: fix error bailout in xfs_rtginode_create

Source kernel commit: 23bee6f390a12d0c4c51fefc083704bc5dac377e

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>
libxfs/xfs_rtgroup.c