diff options
Diffstat (limited to 'sound/oss/nec_vrc5477.c')
-rw-r--r-- | sound/oss/nec_vrc5477.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/oss/nec_vrc5477.c b/sound/oss/nec_vrc5477.c index d459bdb14154..27b4ba3aaa7c 100644 --- a/sound/oss/nec_vrc5477.c +++ b/sound/oss/nec_vrc5477.c | |||
@@ -1860,11 +1860,10 @@ static int __devinit vrc5477_ac97_probe(struct pci_dev *pcidev, | |||
1860 | if (pcidev->irq == 0) | 1860 | if (pcidev->irq == 0) |
1861 | return -1; | 1861 | return -1; |
1862 | 1862 | ||
1863 | if (!(s = kmalloc(sizeof(struct vrc5477_ac97_state), GFP_KERNEL))) { | 1863 | if (!(s = kzalloc(sizeof(struct vrc5477_ac97_state), GFP_KERNEL))) { |
1864 | printk(KERN_ERR PFX "alloc of device struct failed\n"); | 1864 | printk(KERN_ERR PFX "alloc of device struct failed\n"); |
1865 | return -1; | 1865 | return -1; |
1866 | } | 1866 | } |
1867 | memset(s, 0, sizeof(struct vrc5477_ac97_state)); | ||
1868 | 1867 | ||
1869 | init_waitqueue_head(&s->dma_adc.wait); | 1868 | init_waitqueue_head(&s->dma_adc.wait); |
1870 | init_waitqueue_head(&s->dma_dac.wait); | 1869 | init_waitqueue_head(&s->dma_dac.wait); |