diff options
| author | pgoyette <pgoyette@NetBSD.org> | 2015-06-23 10:41:41 +0000 |
|---|---|---|
| committer | pgoyette <pgoyette@NetBSD.org> | 2015-06-23 10:41:41 +0000 |
| commit | aed30b9d1999069fd0b7eb5867dc99675ffe9950 (patch) | |
| tree | 9dc8d903e753f6ffa67a24071429ae6cbe1c6f34 /sys/dev/sysmon | |
| parent | 9180d28cd544d61de673d0ac80d945f18f357695 (diff) | |
Fix the KASSERT - we want to make sure that _both_ pointers are non-NULL,
n ot just that one or the other is non-NULL!
Diffstat (limited to 'sys/dev/sysmon')
| -rw-r--r-- | sys/dev/sysmon/sysmon_envsys_events.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sysmon/sysmon_envsys_events.c b/sys/dev/sysmon/sysmon_envsys_events.c index 1c35540c31d..1a1b572c34e 100644 --- a/sys/dev/sysmon/sysmon_envsys_events.c +++ b/sys/dev/sysmon/sysmon_envsys_events.c @@ -1,4 +1,4 @@ -/* $NetBSD: sysmon_envsys_events.c,v 1.115 2015/04/18 14:44:44 mlelstv Exp $ */ +/* $NetBSD: sysmon_envsys_events.c,v 1.116 2015/06/23 10:41:41 pgoyette Exp $ */ /*- * Copyright (c) 2007, 2008 Juan Romero Pardines. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.115 2015/04/18 14:44:44 mlelstv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.116 2015/06/23 10:41:41 pgoyette Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -768,7 +768,7 @@ sme_events_worker(struct work *wk, void *arg) envsys_data_t *edata = see->see_edata; KASSERT(wk == &see->see_wk); - KASSERT(sme != NULL || edata != NULL); + KASSERT(sme != NULL && edata != NULL); mutex_enter(&sme->sme_mtx); see->see_flags |= SEE_EVENT_WORKING; |
