aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/pcxhr/pcxhr.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-12-20 17:39:47 -0500
committerTakashi Iwai <tiwai@suse.de>2008-12-20 17:39:47 -0500
commit55fa518867978e1f5fd8353098f80d125ac734d7 (patch)
tree3502b331c1f9ec4cac25dc8ba30b6a0a324e350c /sound/pci/pcxhr/pcxhr.c
parentbb1f24bf00a85f666b56a09b7cdbfd221af16c2c (diff)
parenteea0579fc85e64e9f05361d5aacf496fe7a151aa (diff)
Merge branch 'topic/pcsp-fix' into topic/misc
Diffstat (limited to 'sound/pci/pcxhr/pcxhr.c')
-rw-r--r--sound/pci/pcxhr/pcxhr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c
index 58621206a2b3..7d2b136295d5 100644
--- a/sound/pci/pcxhr/pcxhr.c
+++ b/sound/pci/pcxhr/pcxhr.c
@@ -1230,8 +1230,11 @@ static int __devinit pcxhr_probe(struct pci_dev *pci, const struct pci_device_id
1230 return -ENOMEM; 1230 return -ENOMEM;
1231 } 1231 }
1232 1232
1233 if (snd_BUG_ON(pci_id->driver_data >= PCI_ID_LAST)) 1233 if (snd_BUG_ON(pci_id->driver_data >= PCI_ID_LAST)) {
1234 kfree(mgr);
1235 pci_disable_device(pci);
1234 return -ENODEV; 1236 return -ENODEV;
1237 }
1235 card_name = pcxhr_board_params[pci_id->driver_data].board_name; 1238 card_name = pcxhr_board_params[pci_id->driver_data].board_name;
1236 mgr->playback_chips = pcxhr_board_params[pci_id->driver_data].playback_chips; 1239 mgr->playback_chips = pcxhr_board_params[pci_id->driver_data].playback_chips;
1237 mgr->capture_chips = pcxhr_board_params[pci_id->driver_data].capture_chips; 1240 mgr->capture_chips = pcxhr_board_params[pci_id->driver_data].capture_chips;