Skip to contentSkip to conversation

pci enable nm256 audio

PATCH New Marcus Meissner 1 participant 1 message Apr 18, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci enable nm256 audio

Hi Alan, linux-kernel,

Some of our customer reported a hang when modprobing nm256_audio, this patch should fix the problem.

Ciao, Marcus

Index: nm256_audio.c
===================================================================
RCS file: /build/mm/work/repository/linux-mm/drivers/sound/nm256_audio.c,v retrieving revision 1.1

nm256_audio.c +3 -0
diff -u -r1.1 nm256_audio.c
@@ -1042,6 +1042,9 @@
     struct pm_dev *pmdev;
     int x;
 
+    if (pci_enable_device(pcidev))
+	    return 0;
+
     card = kmalloc (sizeof (struct nm256_info), GFP_KERNEL);
     if (card == NULL) {
 	printk (KERN_ERR "NM256: out of memory!\n");