git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: hda - Fix memory leaks at error path in patch_cirrus.c
[pandora-kernel.git]
/
sound
/
pci
/
hda
/
patch_cirrus.c
diff --git
a/sound/pci/hda/patch_cirrus.c
b/sound/pci/hda/patch_cirrus.c
index
ec0518e
..
e449278
100644
(file)
--- a/
sound/pci/hda/patch_cirrus.c
+++ b/
sound/pci/hda/patch_cirrus.c
@@
-1404,7
+1404,7
@@
static int patch_cs420x(struct hda_codec *codec)
return 0;
error:
-
kfree(codec->sp
ec);
+
cs_free(cod
ec);
codec->spec = NULL;
return err;
}
@@
-1949,7
+1949,7
@@
static int patch_cs421x(struct hda_codec *codec)
return 0;
error:
-
kfree(codec->sp
ec);
+
cs_free(cod
ec);
codec->spec = NULL;
return err;
}