diff options
author | Richard Fitzgerald <rf@opensource.wolfsonmicro.com> | 2016-12-09 12:57:41 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-12-12 18:51:59 +0300 |
commit | 4d41c74dcb6778ae92d985e4d32055345c3a1fed (patch) | |
tree | 234edb1257f6e38801d8044e2fe8e761485dbc45 /sound/soc/codecs/wm_adsp.c | |
parent | 35f4403edb21d8b162beb3ab82b2087f4063f19d (diff) | |
download | linux-4d41c74dcb6778ae92d985e4d32055345c3a1fed.tar.xz |
ASoC: wm_adsp: wm_adsp_buf_alloc should use kfree in error path
buf was allocated by kzalloc() so it should be passed to kfree()
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.c')
-rw-r--r-- | sound/soc/codecs/wm_adsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index ff111a82fa3f..593b7d1aed46 100644 --- a/sound/soc/codecs/wm_adsp.c +++ b/sound/soc/codecs/wm_adsp.c @@ -187,7 +187,7 @@ static struct wm_adsp_buf *wm_adsp_buf_alloc(const void *src, size_t len, buf->buf = vmalloc(len); if (!buf->buf) { - vfree(buf); + kfree(buf); return NULL; } memcpy(buf->buf, src, len); |