Commit 69f60347 authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

greybus: loopback: return the right error value

If an error occurs starting up the loopback thread, the error code
is not extracted properly.  Fix that.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent a04c640e
......@@ -362,7 +362,7 @@ static int gb_loopback_connection_init(struct gb_connection *connection)
gb_loopback_reset_stats(gb);
gb->task = kthread_run(gb_loopback_fn, gb, "gb_loopback");
if (IS_ERR(gb->task)) {
retval = IS_ERR(gb->task);
retval = PTR_ERR(gb->task);
goto error;
}
......
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