Browse Source

Fix potential dereference when starting avalon with all new work.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
e13c580cac
  1. 2
      driver-avalon.c

2
driver-avalon.c

@ -940,7 +940,7 @@ static void *avalon_send_tasks(void *userdata) @@ -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…
Cancel
Save