HomeFreeBSD

lindebugfs.c: Fix possible NULL dereference

Description

lindebugfs.c: Fix possible NULL dereference

If debugfs_destroy() is called early as part of error handling during
initialzation, pn->pn_data is unset. This led to a panic in that if
because dm is NULL.

Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50985

Details

Provenance
dumbbellAuthored on Jun 18 2025, 8:32 PM
Reviewer
bz
Differential Revision
D50985: lindebugfs.c: Fix possible NULL dereference
Parents
rG0e0df1fc6753: cp: Fix improper use of O_PATH.
Branches
Unknown
Tags
Unknown