Commit 539d6e11 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: svc: return proper error code on watchdog create error

When the watchdog is not created properly, we need to propagate the
error for this and not just return success.
Reported-by: default avatarRui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent ed7279ae
...@@ -441,6 +441,7 @@ static int gb_svc_hello(struct gb_operation *op) ...@@ -441,6 +441,7 @@ static int gb_svc_hello(struct gb_operation *op)
dev_err(&svc->dev, "failed to create watchdog: %d\n", ret); dev_err(&svc->dev, "failed to create watchdog: %d\n", ret);
input_unregister_device(svc->input); input_unregister_device(svc->input);
device_del(&svc->dev); device_del(&svc->dev);
return ret;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment