mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 22:14:36 +00:00
Fix potential dereference when starting avalon with all new work.
This commit is contained in:
parent
42d96ee7fe
commit
e13c580cac
@ -940,7 +940,7 @@ static void *avalon_send_tasks(void *userdata)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (likely(j < avalon->queued && !info->overheat)) {
|
if (likely(j < avalon->queued && !info->overheat && avalon->works[i])) {
|
||||||
info->idle = false;
|
info->idle = false;
|
||||||
avalon_init_task(&at, 0, 0, info->fan_pwm,
|
avalon_init_task(&at, 0, 0, info->fan_pwm,
|
||||||
info->timeout, info->asic_count,
|
info->timeout, info->asic_count,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user