From: Wei Yongjun Date: Wed, 11 Jul 2018 13:15:54 +0000 (+0000) Subject: staging: pi433: fix error return code in pi433_probe() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1ba60ad56c409f23ac244adb7734208e53f8a985;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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; }