Module Name:    src
Committed By:   haad
Date:           Wed Jan  4 16:05:53 UTC 2012

Modified Files:
        src/sys/dev/dm: dm_target_stripe.c

Log Message:
Fix wrong KASSERT, reported by mhitch@.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/dm/dm_target_stripe.c
diff -u src/sys/dev/dm/dm_target_stripe.c:1.16 src/sys/dev/dm/dm_target_stripe.c:1.17
--- src/sys/dev/dm/dm_target_stripe.c:1.16	Fri Oct 14 09:23:30 2011
+++ src/sys/dev/dm/dm_target_stripe.c	Wed Jan  4 16:05:53 2012
@@ -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
 			tlc = TAILQ_NEXT(tlc, entries);
 
 		/* by this point we should have an tlc */
-		KASSERT(tlc == NULL);
+		KASSERT(tlc != NULL);
 
 		nestbuf->b_blkno += tlc->offset;
 

Reply via email to