projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a04c640
)
greybus: loopback: return the right error value
author
Alex Elder
<elder@linaro.org>
Tue, 12 May 2015 02:16:35 +0000
(21:16 -0500)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Tue, 12 May 2015 17:25:14 +0000
(10:25 -0700)
If an error occurs starting up the loopback thread, the error code
is not extracted properly. Fix that.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/loopback.c
b/drivers/staging/greybus/loopback.c
index 20aabebf01406bd58075f9f9c8f9472bd5386011..85e2fe7b5d761baa975bdf22d707bcf4c87ccaf1 100644
(file)
--- 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;
}