From: Alex Elder Date: Tue, 12 May 2015 02:16:35 +0000 (-0500) Subject: greybus: loopback: return the right error value X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1549 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=69f6034792faf0f930f3797a0a3c3c9cf9ac73cc;p=karo-tx-linux.git 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: Alex Elder Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index 20aabebf0140..85e2fe7b5d76 100644 --- a/drivers/staging/greybus/loopback.c +++ b/drivers/staging/greybus/loopback.c @@ -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; }