Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ieee1394 KASSERT(mutex_owner(...)) ---> KASSERT(mute...



details:   https://anonhg.NetBSD.org/src/rev/625d8127e38e
branches:  trunk
changeset: 349029:625d8127e38e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Nov 20 22:56:13 2016 +0000

description:
KASSERT(mutex_owner(...)) ---> KASSERT(mutex_owned(...))

If this is not correct, then there's something bogus in this code
anyway, so better to fail early.

Final part of PR kern/47114.

diffstat:

 sys/dev/ieee1394/fwohci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 403a529d5b26 -r 625d8127e38e sys/dev/ieee1394/fwohci.c
--- a/sys/dev/ieee1394/fwohci.c Sun Nov 20 22:47:39 2016 +0000
+++ b/sys/dev/ieee1394/fwohci.c Sun Nov 20 22:56:13 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fwohci.c,v 1.139 2016/11/20 22:47:39 riastradh Exp $   */
+/*     $NetBSD: fwohci.c,v 1.140 2016/11/20 22:56:13 riastradh Exp $   */
 
 /*-
  * Copyright (c) 2003 Hidetoshi Shimokawa
@@ -37,7 +37,7 @@
  *
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fwohci.c,v 1.139 2016/11/20 22:47:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fwohci.c,v 1.140 2016/11/20 22:56:13 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -2508,7 +2508,7 @@
        unsigned short chtag;
        int idb;
 
-       KASSERT(mutex_owner(&sc->fc.fc_mtx));
+       KASSERT(mutex_owned(&sc->fc.fc_mtx));
 
        dbch = &sc->it[dmach];
        chtag = sc->it[dmach].xferq.flag & 0xff;



Home | Main Index | Thread Index | Old Index