Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / sound / ppc / daca.c
index 57202b0..46eebf5 100644 (file)
@@ -258,9 +258,10 @@ int __init snd_pmac_daca_init(struct snd_pmac *chip)
                request_module("i2c-powermac");
 #endif /* CONFIG_KMOD */       
 
-       mix = kzalloc(sizeof(*mix), GFP_KERNEL);
+       mix = kmalloc(sizeof(*mix), GFP_KERNEL);
        if (! mix)
                return -ENOMEM;
+       memset(mix, 0, sizeof(*mix));
        chip->mixer_data = mix;
        chip->mixer_free = daca_cleanup;
        mix->amp_on = 1; /* default on */