ALSA: hda - Fix control element allocations in VIA codec parser
[safe/jmp/linux-2.6] / sound / pci / hda / patch_via.c
index 9ddc373..be12954 100644 (file)
@@ -476,7 +476,7 @@ static struct snd_kcontrol_new *via_clone_control(struct via_spec *spec,
        knew->name = kstrdup(tmpl->name, GFP_KERNEL);
        if (!knew->name)
                return NULL;
-       return 0;
+       return knew;
 }
 
 static void via_free_kctls(struct hda_codec *codec)