From c85ef07282be275afa08b2572920163e7c4d803b Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 24 Mar 2010 17:04:59 +0000 Subject: [PATCH] addi_common: Just use the driver name in the call to comedi_request_irq() instead of a static char buffer that gets overwritten. --- comedi/drivers/addi-data/addi_common.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/comedi/drivers/addi-data/addi_common.c b/comedi/drivers/addi-data/addi_common.c index a6ab05f6..6f65f5e6 100644 --- a/comedi/drivers/addi-data/addi_common.c +++ b/comedi/drivers/addi-data/addi_common.c @@ -2574,10 +2574,6 @@ static int i_ADDI_Attach(comedi_device * dev, comedi_devconfig * it) struct pcilst_struct *card = NULL; unsigned char pci_bus, pci_slot, pci_func; int i_Dma = 0; - static char c_Identifier[150]; - - sprintf(c_Identifier, "Addi-Data GmbH Comedi %s", - this_board->pc_DriverName); if ((ret = alloc_private(dev, sizeof(addi_private))) < 0) { return -ENOMEM; @@ -2651,7 +2647,7 @@ static int i_ADDI_Attach(comedi_device * dev, comedi_devconfig * it) if (irq > 0) { if (comedi_request_irq(irq, v_ADDI_Interrupt, IRQF_SHARED, - c_Identifier, dev) < 0) { + ADDIDATA_DRIVER_NAME, dev) < 0) { printk(", unable to allocate IRQ %u, DISABLING IT", irq); irq = 0; /* Can't use IRQ */ -- 2.26.2