greybus: connection: fix potential null-deref in connection create
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 3 Nov 2015 11:11:28 +0000 (12:11 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 5 Nov 2015 04:20:23 +0000 (20:20 -0800)
commita6e0363cb06989e9584820d3f5c0faad1cc35eae
treeb1a3c124f5371d11b9f5fd16d8e45b6d677e7437
parent21dcc9e50339642dfd241fa081a9b2ab6a34221a
greybus: connection: fix potential null-deref in connection create

We allow connections without bundles so we must not use the bundle
device for error messages after binding the protocol.

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