diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-07-11 16:15:54 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-12 22:49:24 +0300 |
commit | 1ba60ad56c409f23ac244adb7734208e53f8a985 (patch) | |
tree | b048548ae600764a6061da765bc9361de167dfb0 /drivers/staging/pi433 | |
parent | 191c6a97a742d19dc2f4689d43f45168573dbe5a (diff) | |
download | linux-1ba60ad56c409f23ac244adb7734208e53f8a985.tar.xz |
staging: pi433: fix error return code in pi433_probe()
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>
Diffstat (limited to 'drivers/staging/pi433')
-rw-r--r-- | drivers/staging/pi433/pi433_if.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 511b2b531732..c85a805a1243 100644 --- 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; } |