greybus: connection: fix potential null-deref on create
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 25 Nov 2015 14:59:12 +0000 (15:59 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 25 Nov 2015 23:34:19 +0000 (15:34 -0800)
commit0daf17b9e4f74981c7546ad4b4224b8bef85e00e
tree724e98b7033e3724eecc854cc84d11be8cb416a8
parent2566fae6a5eb29e52502a38fd816c6e994547625
greybus: connection: fix potential null-deref on create

Make sure that the interface lookup helper can handle static,
bundle-less connections without oopsing when creating further
connections.

Note that the initial svc-connection has always been bundle-less, but
did not trigger an oops as a bundle was created for it before further
connections were created.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c