Skip to content

Commit 80d3d33

Browse files
Darrick J. WongChandan Babu R
authored andcommitted
xfs: fix a memory leak
kmemleak reported that we don't free the parent pointer names here if we found corruption. Fixes: 0d29a20 ("xfs: scrub parent pointers") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
1 parent 8400291 commit 80d3d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/scrub/parent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ xchk_parent_pptr(
799799
}
800800

801801
if (pp->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)
802-
goto out_pp;
802+
goto out_names;
803803

804804
/*
805805
* Complain if the number of parent pointers doesn't match the link

0 commit comments

Comments
 (0)