greybus: interface: free bundles on initialisation errors
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 9 Mar 2016 11:20:37 +0000 (12:20 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 10 Mar 2016 21:57:42 +0000 (13:57 -0800)
commita77660a75a3f79c71064dc6848a2975731ca5c00
tree8fc014813ec3cf139193970181441756e7fadc56
parent7a137fb290df63f24242fc4996decd0b339ba3b1
greybus: interface: free bundles on initialisation errors

Immediately free any created bundle structures on interface
initialisation errors.

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