mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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>
This commit is contained in:
parent
6e304f5963
commit
2df6396160
1 changed files with 1 additions and 0 deletions
|
|
@ -713,6 +713,7 @@ topology_error:
|
|||
kfree(topology);
|
||||
base_error:
|
||||
gbcodec->mgmt_connection = NULL;
|
||||
gbaudio_free_codec(dev, gbcodec);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue