X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fgpu%2Fhost1x%2Fjob.c;h=112f27e51bc7df81b45efcb58f7c11fc46f097e0;hb=084c6c5013af3c62f1c344435214496f5ac999f2;hp=1146e3bba6e19bb69cd7f866c149b4aa7202ae46;hpb=167eeb470057adb5e9a22281d2852edc91c70473;p=~andy%2Flinux diff --git a/drivers/gpu/host1x/job.c b/drivers/gpu/host1x/job.c index 1146e3bba6e..112f27e51bc 100644 --- a/drivers/gpu/host1x/job.c +++ b/drivers/gpu/host1x/job.c @@ -538,7 +538,7 @@ int host1x_job_pin(struct host1x_job *job, struct device *dev) 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) job->gathers[j].handled = true;