Codex notices that we leak the fsproperty handle if the filesystem
doesn't actually have the property set. Fix that by moving the free
call; it can handle a totally nulled out structure.
Cc: linux-xfs@vger.kernel.org # v6.10.0
Fixes: 9451b5ee0d0d2d ("xfs_scrub: allow sysadmin to control background scrubs")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
break;
}
- fsprops_free_handle(&fph);
-
summarize:
switch (ctx->mode) {
case SCRUB_MODE_NONE:
break;
}
+ fsprops_free_handle(&fph);
return;
no_property:
/*