]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: drop the cport id on error
authorAlex Elder <elder@linaro.org>
Wed, 29 Oct 2014 00:35:58 +0000 (19:35 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 29 Oct 2014 00:42:17 +0000 (08:42 +0800)
commitb29699602df46a8dffe01bedf2a601c4e2699a96
tree4b78fffb35e458b675969d352fa68a1df1777ef2
parent755a21a9bfeef4bd8145d0896a1b6f668f6d99f3
greybus: drop the cport id on error

In gb_connection_create(), if an error occurs adding a connection's
device, the cport id assigned to the AP end of the connection is not
getting freed.  Fix that.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/connection.c