greybus: audio_codec: Free gccodec on codec probe failure
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 27 Jan 2016 05:46:57 +0000 (11:16 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 28 Jan 2016 01:34:54 +0000 (17:34 -0800)
commit2df6396160b019d992241e2db8a6d5a15f654e69
tree9beca5fd3d51a836c42e7e456a43cb16301293fb
parent6e304f5963ce2136cf8fda2acfb87cfe942d2e71
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>
drivers/staging/greybus/audio_codec.c