greybus: manifest: release cport descriptors to avoid 'excess descriptors' warning
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 7 Sep 2015 10:31:20 +0000 (16:01 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 04:19:46 +0000 (21:19 -0700)
commit4317f874f48d14fbd5b1d408336843dbe129ab3e
tree8e4ee6d8543dd453a6fc9a65fc9d9e139affcb91
parent98d7fbcad90b43f4e4fe03ef3261dbdcb6fe220f
greybus: manifest: release cport descriptors to avoid 'excess descriptors' warning

If we fail to initialize a cport of a bundle, we abort the entire
bundle. But that leads to following (unnecessary) warnings as few of the
cport descriptors, belonging to the aborted bundle were never parsed:

"greybus: excess descriptors in interface manifest"

Fix that by releasing all cport descriptors for the aborted bundle.

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>
drivers/staging/greybus/manifest.c