summaryrefslogtreecommitdiff
path: root/sys/dev/marvell
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2014-03-30 23:25:20 +0000
committerchristos <christos@NetBSD.org>2014-03-30 23:25:20 +0000
commitf2efdcbc4b8577885e35795d9bd7b4eac968c835 (patch)
tree2868e8e7a92e69a422882b38e0db9f245b02ef9f /sys/dev/marvell
parentd086b08fbb978e7b5ea92d66b50f74ba37a3b362 (diff)
provide a buffer for pci_intr_string()
Diffstat (limited to 'sys/dev/marvell')
-rw-r--r--sys/dev/marvell/mvpex.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/marvell/mvpex.c b/sys/dev/marvell/mvpex.c
index 852260a125f..e2c87277d02 100644
--- a/sys/dev/marvell/mvpex.c
+++ b/sys/dev/marvell/mvpex.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mvpex.c,v 1.11 2014/03/30 22:39:29 htodd Exp $ */
+/* $NetBSD: mvpex.c,v 1.12 2014/03/30 23:25:20 christos Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvpex.c,v 1.11 2014/03/30 22:39:29 htodd Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvpex.c,v 1.12 2014/03/30 23:25:20 christos Exp $");
#include "opt_pci.h"
#include "pci.h"
@@ -660,6 +660,7 @@ mvpex_intr_establish(void *v, pci_intr_handle_t pin, int ipl,
struct mvpex_intrhand *pexih;
uint32_t mask;
int ih = pin - 1, s;
+ char buf[PCI_INTRSTR_LEN];
intrtab = &sc->sc_intrtab[ih];
@@ -674,7 +675,7 @@ mvpex_intr_establish(void *v, pci_intr_handle_t pin, int ipl,
pexih->ih_type = ipl;
pexih->ih_intrtab = intrtab;
evcnt_attach_dynamic(&pexih->ih_evcnt, EVCNT_TYPE_INTR, NULL, "mvpex",
- mvpex_intr_string(v, pin));
+ mvpex_intr_string(v, pin, buf, sizeof(buf)));
s = splhigh();