audit(9): do not touch VFS if panicing

Reported by:	bz
This commit is contained in:
Konstantin Belousov 2025-01-30 12:45:04 +02:00
parent dd78d987cb
commit 53ece2bea9

View file

@ -396,7 +396,8 @@ SYSINIT(audit_init, SI_SUB_AUDIT, SI_ORDER_FIRST, audit_init, NULL);
void
audit_shutdown(void *arg, int howto)
{
if (KERNEL_PANICED())
return;
audit_rotate_vnode(NULL, NULL);
}