OSDN Git Service

greybus: connection: fix potential null-deref when binding protocol
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 3 Nov 2015 11:11:27 +0000 (12:11 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 5 Nov 2015 04:20:23 +0000 (20:20 -0800)
commit5245a90564b0c3f781e0c60cdbeb3b3b34c970df
treed1ea03bb6b9d72b216b3f87ab38d80ffc2735ad6
parenta6e0363cb06989e9584820d3f5c0faad1cc35eae
greybus: connection: fix potential null-deref when binding protocol

We can have connections without bundles so we must not use the bundle
device for error messages when failing to look up a 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