projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6c88bf
)
greybus: connection: fix potential null-deref in hd_cport_enable
author
Johan Hovold
<johan@hovoldconsulting.com>
Tue, 3 Nov 2015 11:11:29 +0000
(12:11 +0100)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Thu, 5 Nov 2015 04:20:23 +0000
(20:20 -0800)
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
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/connection.c
b/drivers/staging/greybus/connection.c
index c70518ed504f4c13f692abf6f34b0010a7b3c9d3..e16ed4eafd036803486c5d43a0adc3ef222e687b 100644
(file)
--- a/
drivers/staging/greybus/connection.c
+++ b/
drivers/staging/greybus/connection.c
@@
-196,7
+196,7
@@
static int gb_connection_hd_cport_enable(struct gb_connection *connection)
ret = hd->driver->cport_enable(hd, connection->hd_cport_id);
if (ret) {
- dev_err(
&connection->bundle->dev
,
+ dev_err(
hd->parent
,
"failed to enable host cport: %d\n", ret);
return ret;
}