summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/char/hw_random
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/char/hw_random')
-rw-r--r--kernel/drivers/char/hw_random/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/char/hw_random/core.c b/kernel/drivers/char/hw_random/core.c
index da8faf785..5643b65ce 100644
--- a/kernel/drivers/char/hw_random/core.c
+++ b/kernel/drivers/char/hw_random/core.c
@@ -429,7 +429,7 @@ static int hwrng_fillfn(void *unused)
static void start_khwrngd(void)
{
hwrng_fill = kthread_run(hwrng_fillfn, NULL, "hwrng");
- if (hwrng_fill == ERR_PTR(-ENOMEM)) {
+ if (IS_ERR(hwrng_fill)) {
pr_err("hwrng_fill thread creation failed");
hwrng_fill = NULL;
}