Module Name: src Committed By: yamaguchi Date: Fri Mar 24 13:16:15 UTC 2023
Modified Files: src/sys/dev/pci: if_vioif.c Log Message: vioif(4): fix wrong memory allocation size To generate a diff of this commit: cvs rdiff -u -r1.105 -r1.106 src/sys/dev/pci/if_vioif.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_vioif.c diff -u src/sys/dev/pci/if_vioif.c:1.105 src/sys/dev/pci/if_vioif.c:1.106 --- src/sys/dev/pci/if_vioif.c:1.105 Thu Mar 23 07:26:07 2023 +++ src/sys/dev/pci/if_vioif.c Fri Mar 24 13:16:15 2023 @@ -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); }