Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/dm Fix wrong KASSERT, reported by mhitch@.



details:   https://anonhg.NetBSD.org/src/rev/29164d9c3ee0
branches:  trunk
changeset: 772459:29164d9c3ee0
user:      haad <haad%NetBSD.org@localhost>
date:      Wed Jan 04 16:05:53 2012 +0000

description:
Fix wrong KASSERT, reported by mhitch@.

diffstat:

 sys/dev/dm/dm_target_stripe.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2bd8fdf175f4 -r 29164d9c3ee0 sys/dev/dm/dm_target_stripe.c
--- a/sys/dev/dm/dm_target_stripe.c     Wed Jan 04 15:58:37 2012 +0000
+++ b/sys/dev/dm/dm_target_stripe.c     Wed Jan 04 16:05:53 2012 +0000
@@ -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 @@
                        tlc = TAILQ_NEXT(tlc, entries);
 
                /* by this point we should have an tlc */
-               KASSERT(tlc == NULL);
+               KASSERT(tlc != NULL);
 
                nestbuf->b_blkno += tlc->offset;
 



Home | Main Index | Thread Index | Old Index