Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uwb: properly check kthread_run return value
commit bbf2618 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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information