diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2025-01-30 10:45:04 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2025-02-05 21:41:01 +0000 |
| commit | 53ece2bea9ffa654aaa50e5ed66341160194179f (patch) | |
| tree | 7c1d9f0d09370c23964de4c72ee4aec61a9ff4f8 | |
| parent | dd78d987cb38ef162d40aad86229f1dc19884f78 (diff) | |
| -rw-r--r-- | sys/security/audit/audit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/security/audit/audit.c b/sys/security/audit/audit.c index 269e62db454a..8a9865bf233b 100644 --- a/sys/security/audit/audit.c +++ b/sys/security/audit/audit.c @@ -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); } |
