Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Added KASSERT



details:   https://anonhg.NetBSD.org/src/rev/5934339a0aa5
branches:  trunk
changeset: 1007891:5934339a0aa5
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Tue Mar 03 04:22:45 2020 +0000

description:
Added KASSERT

diffstat:

 sys/dev/pci/if_ixl.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r f642716221d1 -r 5934339a0aa5 sys/dev/pci/if_ixl.c
--- a/sys/dev/pci/if_ixl.c      Tue Mar 03 04:20:50 2020 +0000
+++ b/sys/dev/pci/if_ixl.c      Tue Mar 03 04:22:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ixl.c,v 1.57 2020/03/03 04:19:20 yamaguchi Exp $    */
+/*     $NetBSD: if_ixl.c,v 1.58 2020/03/03 04:22:45 yamaguchi Exp $    */
 
 /*
  * Copyright (c) 2013-2015, Intel Corporation
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ixl.c,v 1.57 2020/03/03 04:19:20 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ixl.c,v 1.58 2020/03/03 04:22:45 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -3807,6 +3807,7 @@
        bus_dmamap_sync(sc->sc_dmat, IXL_DMA_MAP(&sc->sc_atq),
            0, IXL_DMA_LEN(&sc->sc_atq), BUS_DMASYNC_POSTWRITE);
 
+       KASSERT(iatq->iatq_fn != NULL);
        *slot = iatq->iatq_desc;
        slot->iaq_cookie = (uint64_t)((intptr_t)iatq);
 



Home | Main Index | Thread Index | Old Index