]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: audio_codec: Free gccodec on dia probe failure
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 27 Jan 2016 05:46:58 +0000 (11:16 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 28 Jan 2016 01:34:54 +0000 (17:34 -0800)
commit4b27be1223b048322398e04fcebef7f85c0dac0d
tree68fbd13d0a3c1459a1e40135d65cbee9bb36c1e4
parent2df6396160b019d992241e2db8a6d5a15f654e69
greybus: audio_codec: Free gccodec on dia 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