greybus: bundle: fix double freeing of bundle structure
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 21 Oct 2015 09:56:43 +0000 (15:26 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 21 Oct 2015 23:17:05 +0000 (16:17 -0700)
commit8d1043a30fc23a3f8a95b972beb694dd948bbe45
tree4c4c9e48480e5163db484555c60f508fb6f41923
parent3014712fe1dc26640178319e55f3a80ce42a4775
greybus: bundle: fix double freeing of bundle structure

The bundle will be released by gb_bundle_release() once all references
for the bundle are dropped. And so there is no need to free it in the
error path specially.

Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/bundle.c