Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci vioif(4): fix wrong memory allocation size
details: https://anonhg.NetBSD.org/src/rev/a8d8921fd4ba
branches: trunk
changeset: 374014:a8d8921fd4ba
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Fri Mar 24 13:16:15 2023 +0000
description:
vioif(4): fix wrong memory allocation size
diffstat:
sys/dev/pci/if_vioif.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 84ebd2987a00 -r a8d8921fd4ba sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c Fri Mar 24 12:46:08 2023 +0000
+++ b/sys/dev/pci/if_vioif.c Fri Mar 24 13:16:15 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vioif.c,v 1.105 2023/03/23 07:26:07 yamaguchi Exp $ */
+/* $NetBSD: if_vioif.c,v 1.106 2023/03/24 13:16:15 yamaguchi 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.105 2023/03/23 07:26:07 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.106 2023/03/24 13:16:15 yamaguchi Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -1401,7 +1401,7 @@ vioif_alloc_queues(struct vioif_softc *s
nvqs++;
sc->sc_vqs = kmem_zalloc(sizeof(sc->sc_vqs[0]) * nvqs, KM_SLEEP);
- sc->sc_netqs = kmem_zalloc(sizeof(sc->sc_vqs[0]) * netq_num,
+ sc->sc_netqs = kmem_zalloc(sizeof(sc->sc_netqs[0]) * netq_num,
KM_SLEEP);
}
Home |
Main Index |
Thread Index |
Old Index