dediprog: Fix bug where too many transfers would be queued

We didn't check the total number of queued transfers in the inner most
loop. Up to DEDIPROG_ASYNC_TRANSFERS - 1 invalid transfers could be
queued therefore. So add another check on the total number.

Change-Id: I91a8de47db7107455f5fc63ab2f13a0bd50c5b63
Signed-off-by: Nico Huber <>
Acked-by: David Hendricks <>
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <>
1 file changed