Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Oops, made a mistake in my last commit



details:   https://anonhg.NetBSD.org/src/rev/f036699e29f0
branches:  trunk
changeset: 959188:f036699e29f0
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Wed Feb 03 21:04:41 2021 +0000

description:
Oops, made a mistake in my last commit

diffstat:

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

diffs (27 lines):

diff -r bd05fe160518 -r f036699e29f0 sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c    Wed Feb 03 20:27:59 2021 +0000
+++ b/sys/dev/pci/if_vioif.c    Wed Feb 03 21:04:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vioif.c,v 1.68 2021/02/03 20:27:59 reinoud Exp $    */
+/*     $NetBSD: if_vioif.c,v 1.69 2021/02/03 21:04:41 reinoud Exp $    */
 
 /*
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.68 2021/02/03 20:27:59 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.69 2021/02/03 21:04:41 reinoud Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -574,7 +574,7 @@
                rxq = &sc->sc_rxq[qid];
                txq = &sc->sc_txq[qid];
 
-               allocsize += sizeof(struct virtio_net_hdr *) *
+               allocsize += sizeof(struct virtio_net_hdr) *
                        (rxq->rxq_vq->vq_num + txq->txq_vq->vq_num);
        }
        if (sc->sc_has_ctrl) {



Home | Main Index | Thread Index | Old Index