Andrey Konovalov bbf26183b7 uwb: properly check kthread_run return value
uwbd_start() calls kthread_run() and checks that the return value is
not NULL. But the return value is not NULL in case kthread_run() fails,
it takes the form of ERR_PTR(-EINTR).

Use IS_ERR() instead.

Also add a check to uwbd_stop().

Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-18 11:28:23 +02:00
..
2017-05-25 14:30:13 +02:00
2015-10-24 19:52:53 -07:00
2015-10-24 19:52:53 -07:00
2016-11-01 09:04:04 -06:00
2015-10-24 19:52:53 -07:00