greybus: Use valid control pointer while freeing memory
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Tue, 16 Aug 2016 07:06:51 +0000 (12:36 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 18 Aug 2016 15:32:39 +0000 (17:32 +0200)
commit6198f892fafbb3e5875c8a410eb2229a9cbac6ca
tree4fe55ed0d62770fb58857905bf85dc5f45bc7e34
parent15c726ea5218b4e40d2331bd8b25b85848f73c42
greybus: Use valid control pointer while freeing memory

While releasing memory during error path exit, invalid memory pointer
was used for dapm_routes. Use a valid one.

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio_topology.c