mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +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;
|
||||
}
|
||||
|
||||
if (likely(j < avalon->queued && !info->overheat)) {
|
||||
if (likely(j < avalon->queued && !info->overheat && avalon->works[i])) {
|
||||
info->idle = false;
|
||||
avalon_init_task(&at, 0, 0, info->fan_pwm,
|
||||
info->timeout, info->asic_count,
|
||||
|
Loading…
Reference in New Issue
Block a user