OSDN Git Service

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

Use parent of host device for error messages as the connections bundle
may be NULL.

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