X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=sound%2Foss%2Fnec_vrc5477.c;h=27b4ba3aaa7cc78746c3469ce95f5894afb62bcc;hb=ec4883b015c3212f6f6d04fb2ff45f528492f598;hp=da9728e17727a9a60d3d1d9cb1ca79f8725c6820;hpb=6d03a68e6d5528630955452ec4b768dbde0dc00c;p=powerpc.git diff --git a/sound/oss/nec_vrc5477.c b/sound/oss/nec_vrc5477.c index da9728e177..27b4ba3aaa 100644 --- a/sound/oss/nec_vrc5477.c +++ b/sound/oss/nec_vrc5477.c @@ -1381,11 +1381,11 @@ static int vrc5477_ac97_ioctl(struct inode *inode, struct file *file, int val, ret; #ifdef VRC5477_AC97_DEBUG - for (count=0; countirq == 0) return -1; - if (!(s = kmalloc(sizeof(struct vrc5477_ac97_state), GFP_KERNEL))) { + if (!(s = kzalloc(sizeof(struct vrc5477_ac97_state), GFP_KERNEL))) { printk(KERN_ERR PFX "alloc of device struct failed\n"); return -1; } - memset(s, 0, sizeof(struct vrc5477_ac97_state)); init_waitqueue_head(&s->dma_adc.wait); init_waitqueue_head(&s->dma_dac.wait);