projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed7279a
)
greybus: svc: return proper error code on watchdog create error
author
Greg Kroah-Hartman
<gregkh@google.com>
Sun, 24 Jan 2016 01:36:00 +0000
(17:36 -0800)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Sun, 24 Jan 2016 01:38:45 +0000
(17:38 -0800)
When the watchdog is not created properly, we need to propagate the
error for this and not just return success.
Reported-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/svc.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/svc.c
b/drivers/staging/greybus/svc.c
index
fc57470
..
9df3c7a
100644
(file)
--- a/
drivers/staging/greybus/svc.c
+++ b/
drivers/staging/greybus/svc.c
@@
-441,6
+441,7
@@
static int gb_svc_hello(struct gb_operation *op)
dev_err(&svc->dev, "failed to create watchdog: %d\n", ret);
input_unregister_device(svc->input);
device_del(&svc->dev);
+ return ret;
}
return 0;