|
@@ -538,7 +538,7 @@ int host1x_job_pin(struct host1x_job *job, struct device *dev)
|
|
|
|
|
|
g->base = job->gather_addr_phys[i];
|
|
g->base = job->gather_addr_phys[i];
|
|
|
|
|
|
- for (j = 0; j < job->num_gathers; j++)
|
|
|
|
|
|
+ for (j = i + 1; j < job->num_gathers; j++)
|
|
if (job->gathers[j].bo == g->bo)
|
|
if (job->gathers[j].bo == g->bo)
|
|
job->gathers[j].handled = true;
|
|
job->gathers[j].handled = true;
|
|
|
|
|