xfs: fix incorrect error-out in xfs_remove
authorDarrick J. Wong <djwong@kernel.org>
Thu, 17 Nov 2022 03:20:20 +0000 (19:20 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 17 Nov 2022 03:20:20 +0000 (19:20 -0800)
commit2653d53345bda90604f673bb211dd060a5a5c232
treee7ce8dbd62208dd726780fba624e6a376ba50011
parent7b082b5e8afa2426e2d6ec87466b492a681801a9
xfs: fix incorrect error-out in xfs_remove

Clean up resources if resetting the dotdot entry doesn't succeed.
Observed through code inspection.

Fixes: 5838d0356bb3 ("xfs: reset child dir '..' entry when unlinking child")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@redhat.com>
fs/xfs/xfs_inode.c