projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
191c6a9
)
staging: pi433: fix error return code in pi433_probe()
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 11 Jul 2018 13:15:54 +0000
(13:15 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 12 Jul 2018 19:49:24 +0000
(21:49 +0200)
Fix to return a negative error code from the kthread_run() error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/pi433_if.c
patch
|
blob
|
history
diff --git
a/drivers/staging/pi433/pi433_if.c
b/drivers/staging/pi433/pi433_if.c
index
511b2b5
..
c85a805
100644
(file)
--- a/
drivers/staging/pi433/pi433_if.c
+++ b/
drivers/staging/pi433/pi433_if.c
@@
-1249,6
+1249,7
@@
static int pi433_probe(struct spi_device *spi)
device->minor);
if (IS_ERR(device->tx_task_struct)) {
dev_dbg(device->dev, "start of send thread failed");
+ retval = PTR_ERR(device->tx_task_struct);
goto send_thread_failed;
}