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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}