diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-01-27 11:16:57 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-01-27 17:34:54 -0800 |
commit | 2df6396160b019d992241e2db8a6d5a15f654e69 (patch) | |
tree | 9beca5fd3d51a836c42e7e456a43cb16301293fb /drivers/staging/greybus/audio_codec.c | |
parent | 6e304f5963ce2136cf8fda2acfb87cfe942d2e71 (diff) | |
download | op-kernel-dev-2df6396160b019d992241e2db8a6d5a15f654e69.zip op-kernel-dev-2df6396160b019d992241e2db8a6d5a15f654e69.tar.gz |
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 <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/audio_codec.c')
-rw-r--r-- | drivers/staging/greybus/audio_codec.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |