diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-04-17 03:35:38 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-04-17 03:35:38 +0000 |
| commit | 3c41f323c99a630b97fb12208c8723166ad25046 (patch) | |
| tree | 308ca7121c9112489e5beb333e0a66392428829b /sys/kern | |
| parent | 7141f2ad460279c61b174777cf865e28a2e8574a (diff) | |
Notes
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/subr_witness.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index c9e186d9d270..7c49a37ac58f 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -299,9 +299,13 @@ witness_initialize(void *dummy __unused) /* First add in all the specified order lists. */ for (order = order_lists; order->w_name != NULL; order++) { w = enroll(order->w_name, order->w_class); + if (w == NULL) + continue; w->w_file = "order list"; for (order++; order->w_name != NULL; order++) { w1 = enroll(order->w_name, order->w_class); + if (w1 == NULL) + continue; w1->w_file = "order list"; itismychild(w, w1); w = w1; |
