diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_cirrus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index fc92819838a1..f441f53f0306 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c | |||
@@ -1444,7 +1444,7 @@ static int patch_cs420x(struct hda_codec *codec) | |||
1444 | return 0; | 1444 | return 0; |
1445 | 1445 | ||
1446 | error: | 1446 | error: |
1447 | kfree(codec->spec); | 1447 | cs_free(codec); |
1448 | codec->spec = NULL; | 1448 | codec->spec = NULL; |
1449 | return err; | 1449 | return err; |
1450 | } | 1450 | } |
@@ -1989,7 +1989,7 @@ static int patch_cs4210(struct hda_codec *codec) | |||
1989 | return 0; | 1989 | return 0; |
1990 | 1990 | ||
1991 | error: | 1991 | error: |
1992 | kfree(codec->spec); | 1992 | cs_free(codec); |
1993 | codec->spec = NULL; | 1993 | codec->spec = NULL; |
1994 | return err; | 1994 | return err; |
1995 | } | 1995 | } |
@@ -2014,7 +2014,7 @@ static int patch_cs4213(struct hda_codec *codec) | |||
2014 | return 0; | 2014 | return 0; |
2015 | 2015 | ||
2016 | error: | 2016 | error: |
2017 | kfree(codec->spec); | 2017 | cs_free(codec); |
2018 | codec->spec = NULL; | 2018 | codec->spec = NULL; |
2019 | return err; | 2019 | return err; |
2020 | } | 2020 | } |