]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: connection: Exit connection before destroying it
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 3 Jul 2015 11:30:25 +0000 (17:00 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 8 Jul 2015 18:40:53 +0000 (11:40 -0700)
commit6fa1adbcdd28f27b639954e5bb202a2de281679a
tree46cccd275cd50ef817cc1393fe8760bc67fd312d
parent9ddf133371fd87ddf543e8b26389ca26f2d9fc3c
greybus: connection: Exit connection before destroying it

gb_connection_create() can initialize a connection if bundle->device id
is valid. And so the connection must be destroyed by calling
gb_connection_exit() before gb_connection_destroy(). This wasn't done in
the code that is parsing the manifest.

Fix it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/manifest.c