PMC_OP_CONFIGURELOG: cleanup logging process if aborting due to pm_flags

Reported by:	pho
Fixes:	8e63e787ab
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2023-08-20 23:16:58 +03:00
parent e2340276fc
commit 42e70f4283

View File

@ -3821,6 +3821,7 @@ pmc_syscall_handler(struct thread *td, void *syscall_args)
/* No flags currently implemented */
if (cl.pm_flags != 0) {
pmclog_proc_ignite(pmclog_proc_handle, NULL);
error = EINVAL;
break;
}