ASoC: wm_adsp: wm_adsp_buf_alloc should use kfree in error path
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Fri, 9 Dec 2016 09:57:41 +0000 (09:57 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 12 Dec 2016 15:51:59 +0000 (15:51 +0000)
commit4d41c74dcb6778ae92d985e4d32055345c3a1fed
tree234edb1257f6e38801d8044e2fe8e761485dbc45
parent35f4403edb21d8b162beb3ab82b2087f4063f19d
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>
sound/soc/codecs/wm_adsp.c