Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci fix free memory size.
details: https://anonhg.NetBSD.org/src/rev/d482d4090523
branches: trunk
changeset: 346087:d482d4090523
user: nonaka <nonaka%NetBSD.org@localhost>
date: Fri Jun 24 15:25:43 2016 +0000
description:
fix free memory size.
diffstat:
sys/dev/pci/nvme_pci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f90e900138b9 -r d482d4090523 sys/dev/pci/nvme_pci.c
--- a/sys/dev/pci/nvme_pci.c Fri Jun 24 12:22:09 2016 +0000
+++ b/sys/dev/pci/nvme_pci.c Fri Jun 24 15:25:43 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvme_pci.c,v 1.2 2016/05/11 13:55:28 nonaka Exp $ */
+/* $NetBSD: nvme_pci.c,v 1.3 2016/06/24 15:25:43 nonaka Exp $ */
/* $OpenBSD: nvme_pci.c,v 1.3 2016/04/14 11:18:32 dlg Exp $ */
/*
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nvme_pci.c,v 1.2 2016/05/11 13:55:28 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvme_pci.c,v 1.3 2016/06/24 15:25:43 nonaka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -185,7 +185,7 @@
return;
intr_free:
- kmem_free(sc->sc_ih, sizeof(*sc->sc_ih) * sc->sc_nq);
+ kmem_free(sc->sc_ih, sizeof(*sc->sc_ih) * nq);
sc->sc_nq = 0;
intr_release:
pci_intr_release(pa->pa_pc, psc->psc_intrs, psc->psc_nintrs);
Home |
Main Index |
Thread Index |
Old Index