HomeFreeBSD

fsck_ufs: fix segfault with gjournal

Description

fsck_ufs: fix segfault with gjournal

The segfault was being hit in closedisk() while trying to free a
non-pointer.

The fix for this bug differs between stable/12 and stable/13.

PR: 245907
Submitted by: longwitz@incore.de
Differential Revision: https://reviews.freebsd.org/D30537

(cherry picked from commit 441e69e419effac0225a45f4cdb948280b8ce5ab)

Details

Provenance
rewAuthored on Jun 3 2021, 1:41 AM
Differential Revision
D30537: fsck_ffs(8): do bufinit() just before gjournal_check()
Parents
rG1ae5513db3b2: Prefer CPUID leaf 1Fh for Intel CPU topology detection.
Branches
Unknown
Tags
Unknown