1
0
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:
Con Kolivas 2013-07-03 20:56:56 +10:00
parent 42d96ee7fe
commit e13c580cac

View File

@ -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,