summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorhaad <haad@NetBSD.org>2012-01-04 16:05:53 +0000
committerhaad <haad@NetBSD.org>2012-01-04 16:05:53 +0000
commitbfcaa73e9f68389bf52694c2c68633a9626dc1fb (patch)
treef8f3eab87f2295c0740b8ea9b778e612189b90ab /sys/dev
parentc62bab78a524aa06a7a78a3c2c8623413ba01ac0 (diff)
Fix wrong KASSERT, reported by mhitch@.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/dm/dm_target_stripe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dm/dm_target_stripe.c b/sys/dev/dm/dm_target_stripe.c
index a56838d87b3..324d6102220 100644
--- a/sys/dev/dm/dm_target_stripe.c
+++ b/sys/dev/dm/dm_target_stripe.c
@@ -1,4 +1,4 @@
-/*$NetBSD: dm_target_stripe.c,v 1.16 2011/10/14 09:23:30 hannken Exp $*/
+/*$NetBSD: dm_target_stripe.c,v 1.17 2012/01/04 16:05:53 haad Exp $*/
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -248,7 +248,7 @@ dm_target_stripe_strategy(dm_table_entry_t * table_en, struct buf * bp)
tlc = TAILQ_NEXT(tlc, entries);
/* by this point we should have an tlc */
- KASSERT(tlc == NULL);
+ KASSERT(tlc != NULL);
nestbuf->b_blkno += tlc->offset;