greybus: camera: destroy data connection on link-config errors
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 30 Dec 2015 10:23:51 +0000 (11:23 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 30 Dec 2015 21:16:06 +0000 (13:16 -0800)
commit41c23958557d9b37755768849ee39b99a9826a9c
tree0451e8aeb739f32c2a89e64464eab0df639938b9
parentb9f71bc854105148f38d0c2336ed7c9b50a97800
greybus: camera: destroy data connection on link-config errors

Make sure to tear down the data connection also on failure to configure
the link by setting the data_connected flag immediately after creating
the connection.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c