Browse Source

Bugfix: bitforce_queue: Don't try to send ready-to-queue work to device, when there is no ready-to-queue work

Luke Dashjr 12 years ago
parent
commit
f1d8ab809e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      driver-bitforce.c

+ 3 - 0
driver-bitforce.c

@@ -1341,6 +1341,9 @@ bool bitforce_queue_append(struct thr_info *thr, struct work *work)
 		       (unsigned)BITFORCE_MAX_QUEUED, data->ready_to_queue, data->queued);
 		bitforce_set_queue_full(thr);
 	}
+	else
+	if (!data->ready_to_queue)
+		return rv;
 	
 	ndq = !data->queued;
 	if ((ndq)              // Device is idle