Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwrng: core - correct error check of kthread_run call
The kthread_run() function can return two different error values but the hwrng core only checks for -ENOMEM. If the other error value -EINTR is returned it is assigned to hwrng_fill and later used on a kthread_stop() call which naturally crashes. Cc: [email protected] Signed-off-by: Martin Schwidefsky <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information