Skip to content

Commit c9e481c

Browse files
Darrick J. WongSasha Levin
authored andcommitted
xfs: fix copy-paste error in previous fix
[ Upstream commit e764dd4 ] Chris Mason noticed that there is a copy-paste error in a recent change to xrep_dir_teardown that nulls out pointers after freeing the resources. Fixes: ba408d2 ("xfs: only call xf{array,blob}_destroy if we have a valid pointer") Link: https://lore.kernel.org/linux-xfs/[email protected]/ Reported-by: Chris Mason <[email protected]> Signed-off-by: "Darrick J. Wong" <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Carlos Maiolino <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent d116f8b commit c9e481c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/xfs/scrub/dir_repair.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ xrep_dir_teardown(
177177
rd->dir_names = NULL;
178178
if (rd->dir_entries)
179179
xfarray_destroy(rd->dir_entries);
180-
rd->dir_names = NULL;
180+
rd->dir_entries = NULL;
181181
}
182182

183183
/* Set up for a directory repair. */

0 commit comments

Comments
 (0)