diff options
| author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-07-24 13:13:30 +0200 |
|---|---|---|
| committer | TARKZiM <tom8476oo@gmail.com> | 2022-08-25 20:05:38 +0800 |
| commit | 67d0613b872f35b317cbc5aa16f7eff18918ea74 (patch) | |
| tree | f22d5e3f8305c328d30f60b5d84a019a971d8274 /net/lapb/lapb_timer.c | |
| parent | 51a47aa8db0202d3029d109535e594b0a0e96af2 (diff) | |
hwrng: core - correct error check of kthread_run call
[ Upstream commit 17fb874dee093139923af8ed36061faa92cc8e79 ]
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: stable@vger.kernel.org
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Change-Id: I4ad273645fdf8cb16f4a04d274e40330ab77bade
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
