Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use the exact same argument for kmem_alloc and k...



details:   https://anonhg.NetBSD.org/src/rev/1a2bff966c4d
branches:  trunk
changeset: 347129:1a2bff966c4d
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Aug 15 09:30:22 2016 +0000

description:
Use the exact same argument for kmem_alloc and kmem_free; from brainy

diffstat:

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

diffs (27 lines):

diff -r ed9e7027b979 -r 1a2bff966c4d sys/dev/pci/cmpci.c
--- a/sys/dev/pci/cmpci.c       Mon Aug 15 09:20:11 2016 +0000
+++ b/sys/dev/pci/cmpci.c       Mon Aug 15 09:30:22 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cmpci.c,v 1.48 2016/07/07 06:55:41 msaitoh Exp $       */
+/*     $NetBSD: cmpci.c,v 1.49 2016/08/15 09:30:22 maxv Exp $  */
 
 /*
  * Copyright (c) 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cmpci.c,v 1.48 2016/07/07 06:55:41 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cmpci.c,v 1.49 2016/08/15 09:30:22 maxv Exp $");
 
 #if defined(AUDIO_DEBUG) || defined(DEBUG)
 #define DPRINTF(x) if (cmpcidebug) printf x
@@ -1016,7 +1016,7 @@
        struct cmpci_dmanode *n;
 
        error = 0;
-       n = kmem_alloc(sizeof(struct cmpci_dmanode), KM_SLEEP);
+       n = kmem_alloc(sizeof(*n), KM_SLEEP);
        if (n == NULL) {
                error = ENOMEM;
                goto quit;



Home | Main Index | Thread Index | Old Index