diff options
author | Andrey Konovalov <andreyknvl@google.com> | 2017-09-14 14:30:55 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-12 09:18:02 +0200 |
commit | 4a8d502989094b0825bb11240bc12e4d9cc5c65b (patch) | |
tree | ee29cff43852486e34603cf16377707879813c5a /drivers/uwb/lc-dev.c | |
parent | 6fd03e48dc8ad207a6f2f1c36c8b773599ec0280 (diff) | |
download | linux-stable-4a8d502989094b0825bb11240bc12e4d9cc5c65b.tar.gz linux-stable-4a8d502989094b0825bb11240bc12e4d9cc5c65b.tar.bz2 linux-stable-4a8d502989094b0825bb11240bc12e4d9cc5c65b.zip |
uwb: properly check kthread_run return value
commit bbf26183b7a6236ba602f4d6a2f7cade35bba043 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uwb/lc-dev.c')
0 files changed, 0 insertions, 0 deletions