Module Name: src
Committed By: maxv
Date: Mon Aug 15 09:30:22 UTC 2016
Modified Files:
src/sys/dev/pci: cmpci.c
Log Message:
Use the exact same argument for kmem_alloc and kmem_free; from brainy
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/pci/cmpci.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/cmpci.c
diff -u src/sys/dev/pci/cmpci.c:1.48 src/sys/dev/pci/cmpci.c:1.49
--- src/sys/dev/pci/cmpci.c:1.48 Thu Jul 7 06:55:41 2016
+++ src/sys/dev/pci/cmpci.c Mon Aug 15 09:30:22 2016
@@ -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 @@ cmpci_alloc_dmamem(struct cmpci_softc *s
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;