From 2df6396160b019d992241e2db8a6d5a15f654e69 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Wed, 27 Jan 2016 11:16:57 +0530 Subject: [PATCH] greybus: audio_codec: Free gccodec on codec probe failure We aren't freeing the codec, that we allocated before failing to probe the connection. Free it. Signed-off-by: Viresh Kumar Reviewed-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/audio_codec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c index 1f39c9c..a7ccaaa 100644 --- a/drivers/staging/greybus/audio_codec.c +++ b/drivers/staging/greybus/audio_codec.c @@ -713,6 +713,7 @@ topology_error: kfree(topology); base_error: gbcodec->mgmt_connection = NULL; + gbaudio_free_codec(dev, gbcodec); return ret; } -- 2.7.4